/* 梵华境界商城 - 背景音乐播放器样式（2026-11-23 移位：右中，避免挡下单弹窗；z-index 降到 100 沉到所有弹窗之下） */
#fh-music-widget {
  position: fixed;
  right: 14px;
  top: 42%;
  left: auto;
  bottom: auto;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
}
/* 下单/弹窗打开时藏起，避免挡住规格选择 */
#fh-music-widget.fh-music-hidden { display: none; }
/* 纯 CSS 备份：只要有 AmazeUI 弹窗处于激活状态就藏起播放器（现代浏览器支持 :has） */
body:has(.am-popup.am-modal-active) #fh-music-widget,
body:has(.am-modal.am-modal-active) #fh-music-widget { display: none; }
#fh-music-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #C9A227;
  background: #fff;
  color: #8B1A1A;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  padding: 0;
  flex: none;
}
#fh-music-btn.playing {
  background: #C9A227;
  color: #fff;
  animation: fh-music-pulse 2s ease-in-out infinite;
}
@keyframes fh-music-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
  50% { box-shadow: 0 2px 14px rgba(201, 162, 39, .55); }
}
#fh-music-vol {
  display: none;
  align-items: center;
  background: rgba(255, 255, 255, .95);
  border: 1px solid #e5d9b8;
  border-radius: 20px;
  padding: 7px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
#fh-music-vol.show { display: flex; }
#fh-music-slider {
  width: 90px;
  accent-color: #C9A227;
  cursor: pointer;
}
@media (max-width: 480px) {
  #fh-music-widget { right: 10px; top: 42%; }
  #fh-music-slider { width: 70px; }
}
