/* ============================================================
   ZEMIN 全局音乐播放器 v2 — 样式
   深色玻璃拟态，固定右下角，适配所有页面风格。
   ============================================================ */
#zmin-player{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000; /* 确保压过页面内一切元素 */
  width: 300px;
  font-family: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  color: #f2f0ea;
  background: rgba(16,18,26,.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: visible;
  user-select: none;
  transition: opacity .25s ease, transform .25s ease;
}
#zmin-player.zm-min{
  width: 58px; height: 58px; border-radius: 50%;
  cursor: pointer;
}
#zmin-player.zm-min .zm-body,
#zmin-player.zm-min .zm-panel{ display: none; }
#zmin-player.zm-min .zm-head{ padding: 0; border: none; justify-content: center; height: 100%; }
#zmin-player.zm-min .zm-track,
#zmin-player.zm-min .zm-fav,
#zmin-player.zm-min .zm-listbtn{ display: none; }
#zmin-player.zm-min .zm-toggle{ position: static; transform: none; font-size: 20px; }

/* 头部 */
.zm-head{
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.zm-track{ flex: 1; min-width: 0; }
.zm-name{
  display: block; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zm-sub{
  display: block; font-weight: 400; font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px;
}
.zm-btn{
  background: none; border: none; color: #f2f0ea; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s, color .2s, background .2s;
}
.zm-btn:hover{ color: #ffd166; }
.zm-btn:active{ transform: scale(.92); }
.zm-fav{
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 16px; color: rgba(255,255,255,.65);
}
.zm-fav:hover{ color: #ff6b81; background: rgba(255,107,129,.15); }
.zm-fav.zm-on{ color: #ff6b81; }
.zm-listbtn{
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 15px; color: rgba(255,255,255,.65);
}
.zm-listbtn:hover{ color: #ffd166; background: rgba(255,255,255,.1); }
.zm-toggle{
  flex-shrink: 0;
  width: 24px; height: 24px; line-height: 1;
  background: rgba(255,255,255,.1); color: #fff;
  border: none; border-radius: 6px; font-size: 13px; cursor: pointer;
  transition: background .2s;
}
.zm-toggle:hover{ background: rgba(255,255,255,.22); }

/* 主体 */
.zm-body{ padding: 12px 14px 14px; }
.zm-time{
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,.55);
  font-variant-numeric: tabular-nums; margin-bottom: 4px;
}
.zm-prog{
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.16); outline: none; cursor: pointer;
}
.zm-prog::-webkit-slider-thumb{
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: #ffd166; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.zm-prog::-moz-range-thumb{
  width: 12px; height: 12px; border-radius: 50%;
  background: #ffd166; border: 2px solid #fff;
}

/* 控制按钮 */
.zm-ctrl{ display: flex; align-items: center; justify-content: center; gap: 22px; margin: 12px 0 10px; }
.zm-prev, .zm-next{ font-size: 20px; width: 34px; height: 34px; border-radius: 50%; }
.zm-prev:hover, .zm-next:hover{ background: rgba(255,255,255,.1); }
.zm-play{
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg,#ffd166,#ff8a5c); color: #1a1a1a;
  font-size: 18px; box-shadow: 0 6px 18px rgba(255,140,90,.35);
}
.zm-play:hover{ color: #1a1a1a; transform: scale(1.05); }
.zm-play.zm-ps{ color: #fff; background: linear-gradient(135deg,#5cc8ff,#8a5cff); box-shadow: 0 6px 18px rgba(120,110,255,.35); }

/* 音量 */
.zm-vol{ display: flex; align-items: center; gap: 8px; }
.zm-vol .zm-vi{ font-size: 13px; color: rgba(255,255,255,.6); width: 16px; text-align: center; }
.zm-volin{
  -webkit-appearance: none; appearance: none; flex: 1;
  height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.16); outline: none; cursor: pointer;
}
.zm-volin::-webkit-slider-thumb{
  -webkit-appearance: none; appearance: none;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.zm-volin::-moz-range-thumb{ width: 11px; height: 11px; border-radius: 50%; background: #fff; }

/* 列表面板（从卡片上方弹出） */
.zm-panel{
  position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 8px;
  max-height: 0; overflow: hidden;
  background: rgba(16,18,26,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  box-shadow: 0 -6px 30px rgba(0,0,0,.4);
  opacity: 0;
  transition: max-height .25s ease, opacity .2s ease;
}
.zm-panel.zm-open{ max-height: 440px; opacity: 1; overflow: hidden; }
.zm-tabs{ display: flex; border-bottom: 1px solid rgba(255,255,255,.1); }
.zm-tab{
  flex: 1; padding: 9px 0; background: none; border: none; cursor: pointer;
  font-size: 12px; color: rgba(255,255,255,.55);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.zm-tab.on{ color: #ffd166; border-bottom-color: #ffd166; font-weight: 600; }
.zm-favcnt{
  display: inline-block; min-width: 16px; padding: 0 4px;
  margin-left: 3px; border-radius: 8px;
  font-size: 10px; line-height: 16px; text-align: center;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.7);
}
.zm-list{ max-height: 200px; overflow-y: auto; padding: 4px 0; }
.zm-list::-webkit-scrollbar{ width: 6px; }
.zm-list::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.2); border-radius: 3px; }
.zm-item{
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; cursor: pointer;
  font-size: 12px; color: rgba(255,255,255,.75);
  transition: background .15s;
}
.zm-item:hover{ background: rgba(255,255,255,.08); }
.zm-item.zm-cur{ background: rgba(255,209,102,.12); color: #ffd166; }
.zm-no{
  flex-shrink: 0; width: 20px; text-align: center;
  font-size: 11px; color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums;
}
.zm-item.zm-cur .zm-no{ color: #ffd166; }
.zm-t{ flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-favbtn{
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  font-size: 13px; color: rgba(255,255,255,.5);
}
.zm-favbtn:hover{ color: #ff6b81; }
.zm-favbtn.zm-on{ color: #ff6b81; }
.zm-empty{ padding: 26px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.4); }

/* 移动端适配 */
@media (max-width: 520px){
  #zmin-player{ right: 10px; bottom: 10px; width: 280px; }
  .zm-panel{ max-width: 280px; }
}
@media (prefers-reduced-motion: reduce){
  #zmin-player, .zm-panel{ transition: none; }
}


/* ============================================================
   v3 新增：歌单导入区
   ============================================================ */
.zm-import{ display: flex; gap: 6px; padding: 10px 10px 4px; }
.zm-import-in{
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px; color: #f2f0ea; font-size: 12px;
  padding: 7px 10px; outline: none;
  transition: border-color .2s;
}
.zm-import-in::placeholder{ color: rgba(255,255,255,.35); }
.zm-import-in:focus{ border-color: #ffd166; }
.zm-import-btn{
  flex-shrink: 0;
  background: linear-gradient(135deg,#ffd166,#ff8a5c);
  color: #1a1a1a; border: none; border-radius: 8px;
  font-size: 12px; font-weight: 600; padding: 0 14px; cursor: pointer;
  transition: filter .15s, transform .15s;
}
.zm-import-btn:hover{ filter: brightness(1.08); }
.zm-import-btn:active{ transform: scale(.96); }
.zm-import-btn:disabled{ opacity: .5; cursor: default; filter: none; }
.zm-import-msg{
  display: block; padding: 3px 12px 6px; font-size: 11px;
  min-height: 15px; color: rgba(255,255,255,.5);
  line-height: 1.5; word-break: break-all;
}
.zm-import-msg.zm-ok{ color: #7ee2a8; }
.zm-import-msg.zm-err{ color: #ff8a8a; }

/* Cloudflare Pages 版新增：列表项带歌手时的样式 */
.zm-t.zm-with-artist{opacity:.92}
.zm-item[title]{cursor:help}
