
/* ==== 红光博客 · 唱片音乐播放器 ==== */
#hg-music{
  position:fixed; right:20px; bottom:22px; z-index:9998;
  display:flex; align-items:center; gap:12px;
  padding:10px 14px 10px 10px;
  background:rgba(23,21,15,.92);
  border:1px solid rgba(226,85,43,.35);
  border-radius:16px;
  box-shadow:0 10px 30px rgba(23,21,15,.28);
  backdrop-filter:blur(6px);
  font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  transition:transform .2s ease, opacity .2s ease;
}
#hg-music.hg-collapsed{padding:8px 8px 8px 8px}
#hg-music.hg-collapsed .hg-meta{display:none}

/* 黑胶唱片 */
.hg-disc{
  position:relative; width:66px; height:66px; border-radius:50%;
  border:none; padding:0; cursor:pointer; flex:0 0 auto;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      #1b1b1b 0 2px, #262626 2px 3px, #111 3px 5px),
    radial-gradient(circle at 30% 26%, #4a4a4a 0, #151515 55%, #0a0a0a 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.45);
  animation:hg-spin 12s linear infinite;
  animation-play-state:paused;
  overflow:hidden;
}
.hg-disc::after{
  content:""; position:absolute; left:50%; top:50%; width:26px; height:26px;
  transform:translate(-50%,-50%); border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #f2a37f, #e2552b 60%, #a83715 100%);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.25), 0 0 0 1px rgba(0,0,0,.5);
}
.hg-disc .hg-hole{
  position:absolute; left:50%; top:50%; width:7px; height:7px;
  transform:translate(-50%,-50%); border-radius:50%;
  background:#17150f; z-index:2; box-shadow:0 0 0 1px rgba(255,255,255,.15);
}
.hg-disc .hg-shine{
  position:absolute; inset:0; border-radius:50%; pointer-events:none;
  background:linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 62%, rgba(255,255,255,.10) 100%);
  mix-blend-mode:screen;
}
#hg-music.playing .hg-disc{animation-play-state:running}
@keyframes hg-spin{ to{ transform:rotate(360deg); } }

/* 信息区 */
.hg-meta{min-width:150px; max-width:210px}
.hg-title{
  color:#f5f1e8; font-size:13px; line-height:1.4; margin-bottom:6px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.hg-title small{display:block; color:#9a9184; font-size:11px; letter-spacing:.5px}
.hg-ctrl{display:flex; align-items:center; gap:6px}
.hg-ctrl button{
  height:26px; min-width:26px; padding:0 8px; border-radius:8px; cursor:pointer;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12);
  color:#f5f1e8; font-size:13px; line-height:1;
  transition:background .15s, transform .15s;
}
.hg-ctrl button:hover{background:rgba(226,85,43,.55); transform:translateY(-1px)}
.hg-ctrl button:active{transform:translateY(0)}
.hg-bar{
  position:relative; height:4px; margin-top:8px; border-radius:3px;
  background:rgba(255,255,255,.14); overflow:hidden; cursor:pointer;
}
.hg-bar i{position:absolute; left:0; top:0; bottom:0; width:0%; background:linear-gradient(90deg,#e2552b,#f2a37f)}
/* 首次需手势时的提示 */
#hg-music-tip{
  position:fixed; right:20px; bottom:108px; z-index:9999;
  background:rgba(226,85,43,.95); color:#fff; font-size:12.5px;
  padding:8px 12px; border-radius:10px; box-shadow:0 6px 18px rgba(226,85,43,.35);
  opacity:0; transform:translateY(6px); pointer-events:none;
  transition:opacity .25s, transform .25s; font-family:-apple-system,"Microsoft YaHei",sans-serif;
}
#hg-music-tip.show{opacity:1; transform:translateY(0)}
@media (max-width:560px){
  #hg-music{right:12px; left:12px; bottom:12px; justify-content:flex-start}
  .hg-disc{width:56px;height:56px}
  .hg-meta{min-width:0; flex:1}
  #hg-music-tip{left:12px; right:12px; bottom:96px; text-align:center}
}
