/* ========== 战歌播放器样式 ========== */
:root{
  --zg-bg:#eef2f7;
  --zg-card:#ffffff;
  --zg-primary:#1a3a5c;   /* 深海军蓝 */
  --zg-accent:#2f7cf6;    /* 亮蓝 */
  --zg-accent-soft:#eaf3ff;
  --zg-text:#1e293b;
  --zg-muted:#94a3b8;
  --zg-border:#e5eaf1;
  --zg-shadow:0 1px 3px rgba(15,30,50,.08),0 8px 24px rgba(15,30,50,.06);
  --zg-radius:12px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  background:var(--zg-bg);
  color:var(--zg-text);
  font:14px/1.6 "Microsoft YaHei","PingFang SC","Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}

/* 顶栏 */
.zg-topbar{
  background:var(--zg-primary);
  color:#fff;
  box-shadow:0 2px 8px rgba(10,25,45,.25);
}
.zg-topbar-in{
  max-width:1080px;margin:0 auto;padding:0 16px;height:52px;
  display:flex;align-items:center;gap:10px;
}
.zg-brand{font-size:17px;font-weight:700;letter-spacing:1px;display:flex;align-items:center;gap:8px}
.zg-brand .zg-logo{font-size:20px}
.zg-topbar-right{margin-left:auto;display:flex;gap:8px;align-items:center}
.zg-topbar a.zg-admin-link{
  font-size:13px;color:#cfe0f5;padding:5px 12px;border:1px solid rgba(255,255,255,.35);
  border-radius:16px;transition:.2s;
}
.zg-topbar a.zg-admin-link:hover{background:rgba(255,255,255,.12);color:#fff}

/* 主体布局 */
.zg-wrap{
  max-width:1080px;margin:22px auto 40px;padding:0 16px;
  display:grid;grid-template-columns:5fr 7fr;gap:18px;align-items:start;
}
.zg-card{
  background:var(--zg-card);
  border:1px solid var(--zg-border);
  border-radius:var(--zg-radius);
  box-shadow:var(--zg-shadow);
  overflow:hidden;
}

/* ===== 左侧：列表 ===== */
.zg-card-title{
  padding:14px 16px;font-size:16px;font-weight:700;color:var(--zg-primary);
  border-bottom:1px solid var(--zg-border);
  display:flex;align-items:center;gap:8px;
}
.zg-card-title .zg-ic{font-size:18px}
.zg-badge{color:var(--zg-muted);font-weight:500;font-size:13px}
.zg-listbox{max-height:640px;overflow-y:auto;padding:6px 8px}
.zg-listbox::-webkit-scrollbar{width:6px}
.zg-listbox::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}

.zg-item{
  display:flex;align-items:center;gap:10px;
  height:46px;padding:0 10px;border-radius:9px;cursor:pointer;
  transition:background .15s;
}
.zg-item:hover{background:#f4f7fb}
.zg-item.on{background:var(--zg-accent-soft)}
.zg-item.on .zg-t1{color:var(--zg-accent)}
.zg-item.on .zg-no{background:var(--zg-accent);color:#fff;border-color:var(--zg-accent)}

.zg-no{
  flex:none;width:26px;height:26px;border-radius:50%;
  border:1px solid #d7e0ec;color:var(--zg-muted);
  font-size:11px;display:flex;align-items:center;justify-content:center;
  font-variant-numeric:tabular-nums;
}
.zg-tx{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;line-height:1.3}
.zg-t1{font-size:14px;font-weight:600;color:var(--zg-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zg-t2{font-size:11px;color:var(--zg-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zg-state{flex:none;width:22px;display:flex;justify-content:center}

/* 均衡器动画（仅播放中显示） */
.zg-eq{display:none;align-items:flex-end;gap:2px;height:14px}
.zg-item.playing .zg-eq{display:inline-flex}
.zg-eq b{width:3px;background:var(--zg-accent);border-radius:1px;animation:zgEq 1s ease-in-out infinite}
.zg-eq b:nth-child(1){animation-delay:0s}
.zg-eq b:nth-child(2){animation-delay:.25s}
.zg-eq b:nth-child(3){animation-delay:.5s}
@keyframes zgEq{0%,100%{height:4px}50%{height:14px}}
.zg-item.paused .zg-eq b{animation-play-state:paused;height:4px}

.zg-empty{padding:50px 16px;text-align:center;color:var(--zg-muted);font-size:13px}

.zg-tip{margin-top:14px;padding:12px 16px;font-size:12.5px;color:var(--zg-muted)}

/* ===== 右侧：播放器 ===== */
.zg-player{padding:34px 30px 30px;position:sticky;top:18px}
.zg-body{display:flex;gap:30px;align-items:center}

/* 唱片 */
.zg-coverbox{flex:none;width:220px;height:220px;position:relative}
.zg-disc{
  position:absolute;inset:0;border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 17%, transparent 17.5%),
    repeating-radial-gradient(circle at 50% 50%, #22486e 0 2px, #1a3a5c 2px 5px);
  border:6px solid #142c46;
  box-shadow:0 10px 30px rgba(20,44,70,.35), inset 0 0 0 2px rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
  animation:zgSpin 8s linear infinite;
  animation-play-state:paused;
}
.zg-player.playing .zg-disc{animation-play-state:running}
@keyframes zgSpin{to{transform:rotate(360deg)}}
.zg-disc-note{
  width:64px;height:64px;border-radius:50%;background:#fff;
  display:flex;align-items:center;justify-content:center;
  font-style:normal;font-size:30px;color:var(--zg-accent);
  box-shadow:0 0 0 6px rgba(47,124,246,.15);
}
.zg-coverimg{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;
  border:6px solid #142c46;box-shadow:0 10px 30px rgba(20,44,70,.35);
  animation:zgSpin 8s linear infinite;animation-play-state:paused;
}
.zg-player.playing .zg-coverimg{animation-play-state:running}

/* 信息与控制 */
.zg-info{flex:1;min-width:0}
.zg-songname{
  font-size:24px;font-weight:800;color:var(--zg-primary);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.zg-songartist{font-size:13px;color:var(--zg-muted);margin:4px 0 22px}

.zg-progress{display:flex;align-items:center;gap:10px}
.zg-time{font-size:12px;color:var(--zg-muted);font-variant-numeric:tabular-nums;flex:none}
.zg-bar{
  position:relative;flex:1;height:6px;border-radius:3px;background:#e3e9f2;cursor:pointer;
}
.zg-bar-fill{
  position:absolute;left:0;top:0;bottom:0;width:0;border-radius:3px;
  background:linear-gradient(90deg,var(--zg-primary),var(--zg-accent));
}
.zg-bar-knob{
  position:absolute;top:50%;left:0;width:14px;height:14px;border-radius:50%;
  background:#fff;border:3px solid var(--zg-accent);
  transform:translate(-50%,-50%);
  box-shadow:0 1px 4px rgba(0,0,0,.2);pointer-events:none;
}

.zg-ctrl{display:flex;align-items:center;gap:12px;margin-top:24px;flex-wrap:wrap}
.zg-btn{
  height:38px;min-width:38px;padding:0 12px;border-radius:9px;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  font-size:13px;color:#5b6b80;background:#f1f5fa;border:1px solid var(--zg-border);
  transition:.15s;user-select:none;
}
.zg-btn:hover{background:#e7eef7;color:var(--zg-primary)}
.zg-btn-ic{padding:0;width:38px}
.zg-play{
  width:56px;height:56px;border-radius:14px;padding:0;
  background:var(--zg-primary);color:#fff;border:none;
  box-shadow:0 6px 16px rgba(26,58,92,.35);
}
.zg-play:hover{background:#22486e;color:#fff;transform:translateY(-1px)}
.zg-mode{min-width:76px}
.zg-vol{
  -webkit-appearance:none;appearance:none;width:96px;height:5px;border-radius:3px;
  background:#e3e9f2;outline:none;
}
.zg-vol::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;
  background:var(--zg-primary);cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.25);
}
.zg-vol::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--zg-primary);border:none;cursor:pointer}

.zg-err{
  display:none;margin-top:14px;padding:9px 12px;border-radius:8px;
  background:#fef2f2;color:#dc2626;font-size:12.5px;border:1px solid #fecaca;
}
.zg-err.show{display:block}

/* 页脚 */
.zg-footer{text-align:center;color:var(--zg-muted);font-size:12px;padding:20px 0 30px}

/* 响应式 */
@media (max-width:900px){
  .zg-wrap{grid-template-columns:1fr}
  .zg-player{position:static}
  .zg-body{flex-direction:column}
  .zg-info{width:100%}
  .zg-listbox{max-height:420px}
}
