/* 全局底部播放条 + 全屏同步歌词。配色呼应站点品牌（粉/靛渐变）。
   纯自定义 class（不依赖任何预编译工具类）。 */

/* ===== 底部播放条 ===== */
.gmp-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 24px));
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #f1d6e4;
  border-radius: 16px;
  box-shadow: 0 12px 40px -12px rgba(190, 24, 93, .35), 0 2px 8px rgba(0, 0, 0, .06);
  animation: gmp-bar-up .28s cubic-bezier(.22, 1, .36, 1);
}
.gmp-bar[hidden] { display: none; }
@keyframes gmp-bar-up {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.gmp-bar-cover {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 10px; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
}
.gmp-bar-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gmp-bar-mid { flex: 1 1 auto; min-width: 0; cursor: pointer; }
.gmp-bar-title {
  font-size: 13px; font-weight: 800; color: #111827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gmp-bar-lrc {
  font-size: 12px; font-weight: 600; color: #db2777; margin: 1px 0 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-height: 15px; transition: opacity .2s;
}
.gmp-bar-progress {
  position: relative; height: 5px; border-radius: 999px;
  background: #f3e8ee; cursor: pointer; overflow: hidden;
}
.gmp-bar-buffer { position: absolute; inset: 0; background: rgba(0, 0, 0, .04); }
.gmp-bar-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, #ec4899, #f59e0b); border-radius: inherit;
}

.gmp-bar-time { font-size: 11px; color: #9ca3af; font-variant-numeric: tabular-nums; white-space: nowrap; }

.gmp-bar-btn {
  flex: 0 0 auto; border: 0; background: none; cursor: pointer;
  color: #6b7280; font-size: 13px; font-weight: 700; padding: 6px;
  border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
}
.gmp-bar-btn:hover { color: #db2777; background: #fdf2f8; }
.gmp-bar-play {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #ec4899, #f59e0b); color: #fff;
}
.gmp-bar-play:hover { color: #fff; filter: brightness(1.05); }
.gmp-bar-play svg { width: 20px; height: 20px; }
.gmp-bar-lyrics { border: 1px solid #f1d6e4; }
.gmp-bar-close { font-size: 14px; }

/* play/pause 图标切换：默认显示 play，播放中显示 pause */
.gmp-i-pause { display: none; }
.gmp-playing .gmp-i-play { display: none; }
.gmp-playing .gmp-i-pause { display: inline; }

/* ===== 全屏黑胶沉浸式播放器（外观照搬主站 _fullscreen_sheet.html） ===== */
.gmp-sheet { position: fixed; inset: 0; z-index: 1300; }
.gmp-sheet[hidden] { display: none; }
.gmp-sheet-bg {
  position: absolute; inset: 0;
  background: linear-gradient(165deg, #1e1b3a 0%, #2d1b4e 40%, #3a1d5d 70%, #1a0f2e 100%);
}
.gmp-sheet-panel {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 20px 26px; box-sizing: border-box;
  animation: gmp-sheet-up .38s cubic-bezier(.32, .72, .16, 1);
}
@keyframes gmp-sheet-up { from { transform: translateY(40px); opacity: .3; } to { transform: translateY(0); opacity: 1; } }
.gmp-sheet-close {
  position: absolute; top: 16px; right: 18px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; cursor: pointer;
}
.gmp-sheet-close:hover { background: rgba(255, 255, 255, .2); }

/* 舞台：桌面左右两栏（黑胶左、歌词右占满整列），窄屏上下堆叠（抄主站布局） */
.gmp-sheet-stage {
  flex: 1 1 auto; min-height: 0; width: 100%; max-width: 940px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 44px; padding: 6px 0;
}
.gmp-sheet-right {
  flex: 1 1 auto; min-width: 0; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}

/* 黑胶转盘：圆形纹路 + 中央封面 + 播放时旋转(22s/圈) */
.gmp-vinyl-wrap {
  width: min(46vmin, 260px); aspect-ratio: 1; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.gmp-vinyl {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 4px),
    radial-gradient(circle at center, #1d1d1d 0%, #0d0d0d 70%, #1a1a1a 100%);
  box-shadow: 0 28px 70px rgba(0,0,0,.6), inset 0 0 60px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.05);
  animation: gmp-vinyl-spin 22s linear infinite; animation-play-state: paused; will-change: transform;
}
.gmp-playing .gmp-vinyl { animation-play-state: running; }
@keyframes gmp-vinyl-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.gmp-vinyl-cover {
  position: absolute; left: 50%; top: 50%; width: 68%; height: 68%; border-radius: 50%;
  object-fit: cover; transform: translate(-50%, -50%); background: #2a1a4e; display: block;
  box-shadow: 0 0 0 2px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.45);
}

.gmp-sheet-title { color: #fff; font-size: 20px; font-weight: 800; margin: 0 0 10px; text-align: left; text-shadow: 0 2px 12px rgba(0,0,0,.4); flex-shrink: 0; }

.gmp-sheet-lrc {
  flex: 1 1 auto; width: 100%; overflow-y: auto; min-height: 0;
  text-align: left; padding: 8px 4px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.gmp-sheet-lrc::-webkit-scrollbar { width: 0; }
.gmp-lrc-line {
  color: rgba(255, 255, 255, .45); font-size: 15px; line-height: 2; font-weight: 600; padding: 5px 4px;
  transition: color .25s, font-size .25s, text-shadow .25s;
}
.gmp-lrc-line.gmp-lrc-active {
  color: #fff; font-size: 18px; font-weight: 800;
  text-shadow: 0 0 14px rgba(236, 72, 153, .5);
}
.gmp-lrc-plain { text-align: center; }
.gmp-lrc-plaintext { color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 2; white-space: normal; }
.gmp-lrc-empty { color: rgba(255, 255, 255, .45); font-size: 14px; padding-top: 40px; }

.gmp-sheet-ctrl {
  width: 100%; max-width: 480px; display: flex; align-items: center; gap: 14px;
  padding-top: 16px; color: rgba(255, 255, 255, .7); flex-shrink: 0;
}
.gmp-sheet-cur, .gmp-sheet-total { font-size: 11px; font-variant-numeric: tabular-nums; }
.gmp-sheet-progress {
  flex: 1 1 auto; position: relative; height: 14px; display: flex; align-items: center; cursor: pointer;
}
.gmp-sheet-progress::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 4px; background: rgba(255, 255, 255, .12); border-radius: 2px;
}
.gmp-sheet-fill { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 4px; background: linear-gradient(90deg, #ec4899, #f97316); border-radius: 2px; }
.gmp-sheet-ctrl .gmp-sheet-play {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #ec4899, #f97316); color: #fff;
  box-shadow: 0 12px 32px rgba(236, 72, 153, .45);
}
.gmp-sheet-ctrl .gmp-sheet-play:hover { color: #fff; filter: brightness(1.06); }
.gmp-sheet-ctrl .gmp-sheet-play svg { width: 26px; height: 26px; }

/* 「测试歌曲」徽标（卡片左上角小药丸） */
.gmp-demo-badge {
  position: absolute; top: 10px; left: 10px; z-index: 6;
  font-size: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  padding: 3px 9px; border-radius: 999px;
  box-shadow: 0 2px 8px -2px rgba(236, 72, 153, .5);
}

body.gmp-sheet-open { overflow: hidden; }

/* 给底部留出播放条空间，避免遮住最后内容 */
body { scroll-padding-bottom: 90px; }

/* 窄屏：左右两栏改上下堆叠，黑胶缩小，歌词居中 */
@media (max-width: 720px) {
  .gmp-sheet-stage { flex-direction: column; gap: 14px; }
  .gmp-vinyl-wrap { width: min(52vmin, 190px); }
  .gmp-sheet-right { height: auto; flex: 1 1 auto; min-height: 0; width: 100%; }
  .gmp-sheet-title { text-align: center; }
  .gmp-sheet-lrc { text-align: center; }
}

@media (max-width: 640px) {
  .gmp-bar-time { display: none; }
  .gmp-bar { bottom: 10px; gap: 10px; padding: 9px 11px; }
}
