/* 播放页改版（配合 player2.js，只在 body.player2 下生效） */

/* 顶上那条：‹ + 歌名 */
body.player2 #now-page .now-top { grid-template-columns: 48px 1fr 48px; }
body.player2 #now-page .now-top strong {
  font-size: 17px; font-weight: 700; color: #17577e;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px;
}

/* 原来的大歌名和「佳音诗歌」收起来，位置让给滚动歌词 */
body.player2 #now-page h2#page-title, body.player2 #now-page .artist { display: none; }

#lyric-strip {
  position: relative; height: 92px; max-width: 560px; margin: 10px auto 6px;
  overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 26%, #000 74%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 26%, #000 74%, transparent);
}
#lyric-strip .ls-inner {
  padding: 30px 10px; transition: transform .45s cubic-bezier(.22, .8, .3, 1);
}
#lyric-strip p {
  margin: 0 0 9px; font-size: 15px; line-height: 1.5; color: #a8c0d1;
  transition: color .25s, font-size .25s, font-weight .25s;
}
#lyric-strip p.near { color: #7f9db0; }
#lyric-strip p.on { color: #17577e; font-size: 18px; font-weight: 700; }
#lyric-strip p.none { color: #9bb5c8; font-size: 14px; }

/* 进度与时间 */
body.player2 #now-page .page-time { font-size: 12.5px; }
body.player2 #now-page #page-progress { margin-top: 2px; }

/* 控制键重新排：图标扁平化，播放键做成大圆 */
body.player2 #now-page .page-controls {
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: 22px; margin: 6px auto 4px; max-width: 560px;
}
body.player2 #now-page .page-controls button {
  width: 48px; height: 48px; min-width: 48px; padding: 0;
  border: 0; border-radius: 50%; background: none; box-shadow: none; color: #2b76ab;
}
body.player2 #now-page .page-controls button svg { width: 30px; height: 30px; }
body.player2 #now-page .page-controls button:active { background: #e8f4fd; }
body.player2 #now-page .page-controls #page-play {
  width: 66px; height: 66px; min-width: 66px; color: #fff;
  background: linear-gradient(180deg, #62c0f0, #2f8fdd);
  box-shadow: 0 10px 24px #2f8fdd55;
}
body.player2 #now-page .page-controls #page-play svg { width: 32px; height: 32px; }
body.player2 #now-page .page-controls #page-mode {
  width: 40px; height: 40px; min-width: 40px; font-size: 19px; color: #7f9db0;
}
body.player2 #now-page .page-controls .mode-label {
  position: absolute; right: 0; bottom: -14px; width: 56px;
  font-style: normal; font-size: 10.5px; color: #9bb5c8; text-align: center;
}

/* 底下一排：收藏 / 下载 / 分享 */
/* #sleep（定时关闭）恢复显示——它是睡前听诗歌要用的，之前连带藏掉了 */
body.player2 #now-page #lyrics-button,
body.player2 #now-page #settings-bottom, body.player2 #now-page #show-list { display: none !important; }
body.player2 #now-page .page-tools {
  display: flex !important; justify-content: center; gap: 44px;
  margin: 26px auto 14px; max-width: 560px;
}
body.player2 #now-page .page-tools > button {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 0; padding: 0; border: 0; background: none; box-shadow: none;
  color: #245d7e; font-size: 13px;
}
body.player2 #now-page .page-tools > button svg { width: 25px; height: 25px; }
body.player2 #now-page #dl-current b { display: grid; place-items: center; }
body.player2 #now-page #dl-current.on { color: #2f9e4f; }
body.player2 #now-page #dl-current.on svg { stroke: #2f9e4f; }
body.player2 #now-page #dl-current[disabled] { opacity: .6; }
body.player2 #now-page #page-message { min-height: 20px; }

@media (max-height: 700px) {
  #lyric-strip { height: 70px; margin: 6px auto 2px; }
  #lyric-strip .ls-inner { padding: 20px 10px; }
  body.player2 #now-page .page-tools { margin: 16px auto 10px; }
}

/* ---------- 第二轮：舞台一块、工具在上、进度一行、控制键照参考图 ---------- */
/* 只留第一块；歌词/歌谱两块和小圆点都收起来 */
body.player2 #now-page .slides > .slide:nth-child(2),
body.player2 #now-page .slides > .slide:nth-child(3),
body.player2 #now-page #dots { display: none !important; }
body.player2 #now-page .slides { overflow: hidden; }

body.player2 #now-page .album-cover {
  width: min(78vw, 330px); aspect-ratio: 1; object-fit: cover;
  margin: 14px auto 10px; border-radius: 22px;
}
/* 有歌谱时整张显示，不用上下拉 */
body.player2 #now-page .album-cover.is-score {
  width: min(92vw, 430px); height: min(46vh, 420px); aspect-ratio: auto;
  object-fit: contain; background: #fff; padding: 6px; cursor: zoom-in;
  border-radius: 16px; box-shadow: 0 10px 30px #2d7ca529;
}
/* 点一下歌谱放大看 */
#score-viewer {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center; padding: 10px;
  background: #0d2f45ee; touch-action: pinch-zoom;
}
#score-viewer.show { display: flex; }
#score-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 8px; }
#score-viewer button {
  position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 14px;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: #ffffff33; color: #fff; font-size: 22px; line-height: 1; box-shadow: none;
}

/* 工具条在进度上面 */
body.player2 #now-page .page-tools { margin: 14px auto 12px; gap: 40px; }

/* 时间—进度—时间 一行 */
#pbar-row {
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 0 auto 6px;
}
#pbar-row span { flex: none; min-width: 38px; color: #53748b; font-size: 12.5px; font-variant-numeric: tabular-nums; }
#pbar-row span#page-duration { text-align: right; }
body.player2 #now-page #pbar-row #page-progress { flex: 1; width: auto; min-width: 0; margin: 0; }

/* 控制键：随机 ⏮ 大播放 ⏭ 循环 */
body.player2 #now-page .page-controls { gap: 18px; margin: 10px auto 2px; }
body.player2 #now-page .page-controls #p-shuffle,
body.player2 #now-page .page-controls #p-repeat {
  width: 44px; height: 44px; min-width: 44px; color: #8aa7bb; background: none; box-shadow: none;
}
body.player2 #now-page .page-controls #p-shuffle svg,
body.player2 #now-page .page-controls #p-repeat svg { width: 24px; height: 24px; }
body.player2 #now-page .page-controls #p-shuffle.on,
body.player2 #now-page .page-controls #p-repeat.on { color: #2f8fdd; }
body.player2 #now-page .page-controls #page-mode,
body.player2 #now-page .page-controls .mode-label { display: none !important; }
body.player2 #now-page .page-controls #page-play {
  width: 74px; height: 74px; min-width: 74px;
  box-shadow: 0 12px 26px #2f8fdd5c;
}
body.player2 #now-page .page-controls #page-play svg { width: 34px; height: 34px; }
body.player2 #now-page .page-controls #page-prev,
body.player2 #now-page .page-controls #page-next { color: #1f5f88; }
body.player2 #now-page .page-controls #page-prev svg,
body.player2 #now-page .page-controls #page-next svg { width: 32px; height: 32px; }

@media (max-height: 740px) {
  body.player2 #now-page .album-cover { width: min(58vw, 250px); margin: 8px auto 6px; }
  body.player2 #now-page .album-cover.is-score { height: min(38vh, 330px); }
  body.player2 #now-page .page-tools { margin: 10px auto 8px; }
}

/* 工具条现在是五个：收藏 下载 歌单 分享 铃声 */
body.player2 #now-page .page-tools { gap: 24px; }
body.player2 #now-page .page-tools > button { font-size: 12.5px; }
@media (max-width: 360px) {
  body.player2 #now-page .page-tools { gap: 16px; }
  body.player2 #now-page .page-tools > button { font-size: 11.5px; }
}

/* 铃声那条说明可能有两行 */
body.player2 #now-page #page-message {
  max-width: 560px; margin: 0 auto; padding: 0 10px;
  min-height: 20px; line-height: 1.6; white-space: normal;
}

/* ===== 歌谱全屏查看器（可缩放版，score.js 用） =====
   原来那版整张塞进屏幕又点哪都关闭，没法看清音符。这里 1 倍 = 铺满屏幕，
   往上能放到 6 倍，放大后拖动，底下留了 − ＋ 重置 三个大键给不会双指的人。 */
#score-zoom { position: fixed; inset: 0; z-index: 70; display: none; background: #07283ef2; }
#score-zoom.show { display: block; }
#score-zoom .sz-stage {
  position: absolute; inset: 0; overflow: hidden;
  display: grid; place-items: center; touch-action: none; cursor: grab;
}
#score-zoom.zoomed .sz-stage { cursor: move; }
#score-zoom img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  background: #fff; border-radius: 8px; transform-origin: center center;
  will-change: transform; user-select: none; -webkit-user-drag: none;
}
#score-zoom .sz-close {
  position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 14px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: #ffffff33; color: #fff; font-size: 23px; line-height: 1; box-shadow: none;
}
#score-zoom .sz-bar {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 2;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 999px;
  background: #0d3b57d9; backdrop-filter: blur(8px); box-shadow: 0 8px 24px #0006;
}
#score-zoom .sz-bar button {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #ffffff26; color: #fff; font-size: 21px; font-weight: 700; line-height: 1;
  box-shadow: none; display: grid; place-items: center;
}
#score-zoom .sz-bar button.sz-fit { width: auto; padding: 0 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
#score-zoom .sz-bar { gap: 8px; padding: 8px 10px; }
#score-zoom .sz-lab { min-width: 52px; text-align: center; color: #fff; font-size: 13.5px; font-variant-numeric: tabular-nums; }
body.sz-open { overflow: hidden; }
/* 歌谱那一页里的图，提示一下可以点开 */
html body #now-page .lyrics.score img { cursor: zoom-in; }

/* 看谱器里的提示（保存成功 / 失败） */
#score-zoom .sz-tip {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 3;
  bottom: calc(76px + env(safe-area-inset-bottom));
  margin: 0; padding: 8px 15px; border-radius: 999px;
  background: #0d3b57e6; color: #fff; font-size: 13px; white-space: nowrap;
  opacity: 0; transition: opacity .2s;
}
#score-zoom .sz-tip.show { opacity: 1; }
