/* 与现有水墨金橙配色共用变量；默认收起，不占用游戏布局。 */
.audio-dock {
  position: absolute;
  z-index: 45;
  top: calc(64px + env(safe-area-inset-top, 0px));
  right: 12px;
  font-family: var(--font-body);
  color: var(--paper, #f0e2c4);
}
.audio-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--gold-3, #8a622c);
  border-radius: 14px;
  background: linear-gradient(155deg, #302115, var(--panel, #1a120c));
  color: var(--theme, #ff8a3d);
  box-shadow: 0 4px 14px #0008;
}
.audio-toggle .mp-icon, .audio-row .mp-icon { width: 22px; height: 22px; }
.audio-panel {
  width: min(280px, calc(100vw - 32px));
  max-height: calc(100dvh - 150px);
  overflow-y: auto;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--gold-3, #8a622c);
  border-radius: 14px;
  background: var(--panel, #1a120c);
  box-shadow: var(--shadow-panel, 0 12px 30px #0008);
}
.audio-heading, .audio-row, .audio-time { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.audio-heading { font-size: 12px; color: var(--gold, #e7c27a); }
.audio-heading button { min-height: 44px; padding: 0 8px; color: var(--muted, #a08e73); font-size: 11px; }
.audio-row { font-size: 11px; }
.audio-row button { flex-shrink: 0; min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--gold, #e7c27a); }
.audio-row #btn-play-pause { background: linear-gradient(#f4bb79, var(--theme, #ff8a3d)); color: #2b1a09; }
.audio-row #audio-status { flex: 1; color: var(--paper-2, #dfc79b); line-height: 1.5; }
.audio-row #btn-loop { border: 1px solid transparent; font-size: 11px; color: var(--muted, #a08e73); }
.audio-row #btn-loop[aria-pressed="true"] { border-color: var(--theme, #ff8a3d); color: var(--theme, #ff8a3d); background: #ff8a3d12; }
.audio-progress { display: block; margin-top: 5px; }
.audio-dock input[type="range"] { width: 100%; min-width: 0; height: 32px; margin: 0; vertical-align: middle; accent-color: var(--theme, #ff8a3d); cursor: pointer; touch-action: pan-y; }
.audio-dock input:focus-visible { outline: 1px solid var(--theme, #ff8a3d); outline-offset: 2px; }
.audio-time { color: var(--muted, #a08e73); font-size: 10px; font-variant-numeric: tabular-nums; }
.audio-volume { flex: 1; }
.audio-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
