/* ===== mmPlayer 音乐下载按钮（自包含叠加层组件） ===== */
/* 设计语言对齐现有站点：网易云风格红 #d43c33、圆角、柔和阴影 */

.mm-dl-fab {
  position: fixed;
  right: 20px;
  bottom: 96px;                 /* 位于底部播放条之上，避免遮挡控制区 */
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8503f 0%, #d43c33 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(212, 60, 51, .45);
  z-index: 99990;
  transition: transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.mm-dl-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 24px rgba(212, 60, 51, .55);
}

.mm-dl-fab:active {
  transform: scale(.96);
}

.mm-dl-fab svg {
  width: 26px;
  height: 26px;
  display: block;
}

.mm-dl-fab .mm-dl-label {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .75);
  color: #fff;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.mm-dl-fab:hover .mm-dl-label {
  opacity: 1;
}

/* 轻提示 toast，风格对齐站点既有提示 */
.mm-dl-toast {
  position: fixed;
  left: 50%;
  top: 16%;
  transform: translate(-50%, 0);
  background: rgba(30, 30, 30, .92);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 18px;
  border-radius: 22px;
  z-index: 99999;
  max-width: 82vw;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.mm-dl-toast.show {
  opacity: 1;
  transform: translate(-50%, 6px);
}

/* 小屏适配：缩小并上移，避免与播放条重叠 */
@media (max-width: 768px) {
  .mm-dl-fab {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: 88px;
  }
  .mm-dl-fab svg { width: 23px; height: 23px; }
}
