/* 三七弦 · 全站纯弦乐交互音效极简浮囊（自适应剧场深色纯图标与书房宣纸短标） */
.sqx-sfx-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9400;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.sqx-sfx-dock * {
  box-sizing: border-box;
}

/* 剧场开屏页避让右下角底部控制台 */
.sqx-sfx-dock.is-cinema {
  bottom: 84px;
}

@media (max-width: 960px) {
  .sqx-sfx-dock.is-cinema {
    bottom: 126px;
  }
}

@media (max-width: 760px) {
  .sqx-sfx-dock {
    right: 12px;
    bottom: 76px;
  }
  .sqx-sfx-dock.is-cinema {
    bottom: 132px;
  }
}

@media (max-width: 520px) {
  .sqx-sfx-dock.is-cinema {
    bottom: 136px;
  }
  .sqx-sfx-pill {
    height: 30px;
    padding: 0 9px 0 8px;
    font-size: 11px;
  }
  .sqx-sfx-dock.is-cinema .sqx-sfx-pill {
    width: 32px;
    height: 32px;
    padding: 0;
  }
}

.sqx-sfx-pill {
  pointer-events: auto;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(38, 34, 28, 0.13);
  background: rgba(252, 249, 242, 0.88);
  color: #2b2620;
  box-shadow: 0 4px 16px rgba(24, 20, 14, 0.08), 0 1px 2px rgba(24, 20, 14, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.sqx-sfx-pill:hover {
  transform: translateY(-1px);
  background: rgba(252, 249, 242, 0.96);
  box-shadow: 0 8px 22px rgba(24, 20, 14, 0.12);
}

.sqx-sfx-pill:active {
  transform: translateY(0) scale(0.96);
}

.sqx-sfx-pill-text {
  line-height: 1;
  white-space: nowrap;
}

/* 三根极简丝弦图标 */
.sqx-sfx-bars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  width: 13px;
  height: 13px;
  position: relative;
}

.sqx-sfx-bars i {
  display: block;
  width: 1.6px;
  border-radius: 99px;
  background: #b85c38;
  transition: height 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.sqx-sfx-bars i:nth-child(1) { height: 6px; }
.sqx-sfx-bars i:nth-child(2) { height: 11px; }
.sqx-sfx-bars i:nth-child(3) { height: 7.5px; }

.sqx-sfx-pill.is-muted .sqx-sfx-bars i {
  height: 3px;
  background: #9c978f;
  opacity: 0.55;
}

.sqx-sfx-pill.is-muted .sqx-sfx-pill-text {
  opacity: 0.58;
}

.sqx-sfx-panel {
  pointer-events: auto;
  width: 288px;
  border-radius: 14px;
  border: 1px solid rgba(38, 34, 28, 0.13);
  background: rgba(252, 249, 242, 0.96);
  color: #1f1c18;
  box-shadow: 0 16px 42px rgba(20, 17, 12, 0.16), 0 2px 6px rgba(20, 17, 12, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform-origin: bottom right;
  animation: sqxSfxPop 0.18s cubic-bezier(0.22, 1.15, 0.36, 1);
}

.sqx-sfx-panel[hidden] {
  display: none;
}

@keyframes sqxSfxPop {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sqx-sfx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sqx-sfx-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sqx-sfx-close {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 6px;
}

.sqx-sfx-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.sqx-sfx-lbl {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.62;
  margin-bottom: 5px;
}

.sqx-sfx-versions {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sqx-sfx-ver {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(38, 34, 28, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  border-radius: 9px;
  padding: 7px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: inherit;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.08s ease;
}

.sqx-sfx-ver:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(184, 92, 56, 0.36);
}

.sqx-sfx-ver.is-active {
  border-color: #b85c38;
  background: rgba(184, 92, 56, 0.08);
}

.sqx-sfx-ver-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sqx-sfx-ver-main b {
  font-size: 12px;
  font-weight: 700;
}

.sqx-sfx-ver-main span {
  font-size: 10.5px;
  opacity: 0.68;
}

.sqx-sfx-ver-mark {
  font-size: 11px;
  font-weight: 700;
  color: #b85c38;
  opacity: 0;
}

.sqx-sfx-ver.is-active .sqx-sfx-ver-mark {
  opacity: 1;
}

.sqx-sfx-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sqx-sfx-tbtn {
  appearance: none;
  border: 1px solid rgba(38, 34, 28, 0.13);
  background: rgba(255, 255, 255, 0.7);
  color: inherit;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.sqx-sfx-tbtn.is-on {
  border-color: #b85c38;
  background: rgba(184, 92, 56, 0.11);
  color: #8f3f20;
}

.sqx-sfx-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.sqx-sfx-vol input[type="range"] {
  flex: 1;
  accent-color: #b85c38;
  cursor: pointer;
}

.sqx-sfx-vol-num {
  min-width: 34px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
  font-size: 11px;
}

/* 剧场开屏深色极简纯图标圆钮适配（零多余文字、暗金融底不抢戏） */
.sqx-sfx-dock.is-cinema .sqx-sfx-pill {
  width: 34px;
  height: 34px;
  padding: 0;
  gap: 0;
  background: rgba(12, 14, 20, 0.62);
  color: #f4f1e8;
  border-color: rgba(230, 197, 122, 0.24);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.36);
  opacity: 0.72;
}

.sqx-sfx-dock.is-cinema .sqx-sfx-pill:hover,
.sqx-sfx-dock.is-cinema .sqx-sfx-pill.is-open {
  opacity: 1;
  background: rgba(16, 19, 28, 0.86);
  border-color: rgba(230, 197, 122, 0.48);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.48), 0 0 14px rgba(230, 197, 122, 0.14);
}

.sqx-sfx-dock.is-cinema .sqx-sfx-pill-text {
  display: none;
}

.sqx-sfx-dock.is-cinema .sqx-sfx-bars i {
  background: #e6c57a;
}

.sqx-sfx-dock.is-cinema .sqx-sfx-pill.is-muted .sqx-sfx-bars i {
  background: rgba(244, 241, 232, 0.36);
}

.sqx-sfx-dock.is-cinema .sqx-sfx-panel {
  background: rgba(14, 16, 24, 0.93);
  color: #f4f1e8;
  border-color: rgba(230, 197, 122, 0.25);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.58);
}

.sqx-sfx-dock.is-cinema .sqx-sfx-ver,
.sqx-sfx-dock.is-cinema .sqx-sfx-tbtn {
  border-color: rgba(244, 241, 232, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.sqx-sfx-dock.is-cinema .sqx-sfx-ver:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(230, 197, 122, 0.42);
}

.sqx-sfx-dock.is-cinema .sqx-sfx-ver.is-active,
.sqx-sfx-dock.is-cinema .sqx-sfx-tbtn.is-on {
  border-color: #e6c57a;
  background: rgba(230, 197, 122, 0.14);
  color: #f8e6b8;
}

.sqx-sfx-dock.is-cinema .sqx-sfx-ver-mark {
  color: #e6c57a;
}

.sqx-sfx-dock.is-cinema .sqx-sfx-vol input[type="range"] {
  accent-color: #e6c57a;
}
