/* ===== listen-immersive.css — 分享试听 · 沉浸式播放页 v2 ===== */
html, body.lp-page { min-height: 100%; }
body.lp-page {
  --lp-accent: #c8f77f;
  --lp-accent-2: #7ad95a;
  --lp-ink: #eef4ff;
  --lp-dim: #9aa9bd;
  margin: 0; background: #070a0f; color: var(--lp-ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

/* 背景 */
.lp-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #070a0f; }
.lp-bg-img {
  position: absolute; inset: -18%;
  background-image: var(--lp-cover, none); background-size: cover; background-position: center;
  filter: blur(64px) saturate(1.25) brightness(.6); transform: scale(1.08); transition: background-image .6s ease;
}
.lp-bg-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(200,247,127,.15), transparent 60%),
    radial-gradient(90% 70% at 50% 110%, rgba(60,120,255,.13), transparent 62%),
    linear-gradient(180deg, rgba(7,10,15,.5) 0%, rgba(7,10,15,.84) 46%, #070a0f 94%);
}

/* 顶栏 */
.lp-top {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 20px 28px 4px;
}
.lp-brand { color: #f4f8ff; font-size: 18px; font-weight: 800; letter-spacing: .06em; text-decoration: none; }
.lp-brand:hover { color: var(--lp-accent); }
.lp-badge {
  font-size: 10.5px; letter-spacing: .26em; color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.13); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(8px);
}

/* 主体：左播放 右歌词 */
.lp-main {
  position: relative; z-index: 2;
  max-width: 1040px; margin: 0 auto; padding: 6px 28px 140px;
  display: grid; grid-template-columns: minmax(300px, 400px) minmax(280px, 400px);
  gap: clamp(28px, 6vw, 72px); justify-content: center; align-items: start;
}
.lp-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* 封面唱片 */
.lp-cover-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 6px 0 4px; }
.lp-cover-ring {
  position: relative; width: min(46vw, 268px); height: min(46vw, 268px); border-radius: 50%; padding: 6px;
  background: conic-gradient(from 210deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 30%, rgba(255,255,255,.18) 55%, rgba(255,255,255,.03) 78%, rgba(255,255,255,.2));
  box-shadow: 0 28px 70px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.06), 0 0 60px rgba(200,247,127,.14);
  transition: box-shadow .5s ease;
}
.lp-cover-ring::after {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,.32), transparent 62%);
  pointer-events: none; mix-blend-mode: multiply;
}
.lp-cover {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
  animation: lp-spin 26s linear infinite; animation-play-state: paused;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
body.is-playing .lp-cover { animation-play-state: running; }
body.is-playing .lp-cover-ring { box-shadow: 0 32px 80px rgba(0,0,0,.66), 0 0 0 1px rgba(255,255,255,.08), 0 0 78px rgba(200,247,127,.26); }
@keyframes lp-spin { to { transform: rotate(360deg); } }
.lp-cover-hint { font-size: 10.5px; letter-spacing: .3em; color: rgba(255,255,255,.4); }

#title {
  font-size: clamp(24px, 3.4vw, 32px); line-height: 1.25; font-weight: 800;
  margin: 14px 0 6px; color: #f7fbff; text-shadow: 0 8px 28px rgba(0,0,0,.5);
}
#artist { font-size: 13px; color: var(--lp-dim); margin: 0 0 16px; letter-spacing: .05em; }

/* 播放器卡片 */
.lp-player.song-player {
  width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; align-items: center;
  padding: 14px 18px 14px; border-radius: 20px;
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 22px 54px rgba(0,0,0,.4);
}
.player-top { display: flex; align-items: center; gap: 9px; }
.playing-label { font-size: 10.5px; letter-spacing: .2em; color: rgba(255,255,255,.58); }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.sound-bars i { display: block; width: 2px; height: 4px; border-radius: 2px; background: var(--lp-accent); opacity: .4; }
body.is-playing .sound-bars i { animation: lp-bar .9s ease-in-out infinite; opacity: 1; }
.sound-bars i:nth-child(2) { animation-delay: .12s; }
.sound-bars i:nth-child(3) { animation-delay: .24s; }
.sound-bars i:nth-child(4) { animation-delay: .36s; }
.sound-bars i:nth-child(5) { animation-delay: .48s; }
@keyframes lp-bar { 0%,100% { height: 3px; } 50% { height: 11px; } }

.play-controls { display: flex; align-items: center; justify-content: center; gap: 22px; }
.play-controls button {
  border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); color: #dce7f5; border-radius: 50%;
  width: 44px; height: 44px; transition: transform .14s ease, background .2s ease;
}
.play-controls button:hover { background: rgba(255,255,255,.12); }
.play-controls button:active { transform: scale(.9); }
.lp-skip { font-size: 16px; position: relative; }
.lp-skip small { position: absolute; bottom: 7px; font-size: 7.5px; opacity: .6; }
.lp-play, .play-controls #sharePlay {
  width: 68px !important; height: 68px !important; border-radius: 50% !important;
  background: linear-gradient(150deg, #e6ffb0, var(--lp-accent-2)) !important; color: #10200b !important;
  box-shadow: 0 14px 34px rgba(160,230,110,.34), inset 0 1px 0 rgba(255,255,255,.5);
}
.lp-play svg { width: 26px; height: 26px; fill: currentColor; }
#sharePlay:disabled { opacity: .45; box-shadow: none; }

/* 进度条 */
.lp-seek-row { width: 100%; display: flex; align-items: center; gap: 10px; }
.lp-seek-row span { font-size: 10.5px; color: var(--lp-dim); font-variant-numeric: tabular-nums; min-width: 32px; }
.lp-seek-row span:last-child { text-align: right; }
#songSeek { -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 999px; background: rgba(255,255,255,.16); cursor: pointer; outline: 0; }
#songSeek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--lp-accent); box-shadow: 0 0 0 4px rgba(200,247,127,.14); }
#songSeek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--lp-accent); }

/* 右侧歌词栏 */
.lp-side { display: flex; flex-direction: column; min-width: 0; padding-top: 10px; }
.lp-side-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.lp-side-head span { font-size: 10px; letter-spacing: .3em; color: rgba(255,255,255,.42); }
.lp-side-head i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.16), transparent); }

.lp-lyrics {
  width: 100%; margin: 0;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.lp-lyric-scroll { height: min(46vh, 360px); overflow: hidden; scroll-behavior: smooth; }
.lyric-line {
  display: block; width: 100%; box-sizing: border-box; text-align: left;
  font-size: 14.5px; line-height: 1.5; padding: 8px 2px; white-space: pre-wrap;
  color: rgba(255,255,255,.32); transition: color .3s ease, transform .3s ease;
  transform-origin: left center;
}
.lyric-line.active {
  color: #f4ffe2; font-size: 17px; font-weight: 700; text-shadow: 0 0 24px rgba(200,247,127,.32);
  transform: scale(1.01);
}
.lyric-empty { color: rgba(255,255,255,.3); font-size: 13px; padding: 20px 0; }

#message { min-height: 16px; margin: 10px 0 0; font-size: 12px; color: #ffb4a0; }

/* CTA */
.lp-cta {
  margin-top: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 600; color: #eaf3ff;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.035);
  backdrop-filter: blur(10px); transition: all .22s ease;
}
.lp-cta span { color: var(--lp-accent); transition: transform .22s ease; }
.lp-cta:hover { border-color: rgba(200,247,127,.5); color: var(--lp-accent); background: rgba(200,247,127,.06); }
.lp-cta:hover span { transform: translateX(4px); }

/* 底部播放条 */
.lp-player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 11px clamp(14px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(12,16,24,.76), rgba(8,11,17,.96));
  border-top: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 -18px 50px rgba(0,0,0,.5);
}
.gp-left { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 0 1 240px; }
.gp-cover { width: 40px; height: 40px; border-radius: 9px; overflow: hidden; background: rgba(255,255,255,.06); flex: none; }
.gp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gp-meta strong { font-size: 12.5px; font-weight: 650; color: #f2f7ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-meta span { font-size: 10.5px; color: var(--lp-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-btn {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #e6ffb0, var(--lp-accent-2)); color: #10200b;
  box-shadow: 0 8px 20px rgba(160,230,110,.28);
}
.gp-btn svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.gp-vol { background: rgba(255,255,255,.07); color: #cfe0f2; box-shadow: none; }
.gp-track { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.gp-time { font-size: 10.5px; color: var(--lp-dim); font-variant-numeric: tabular-nums; min-width: 32px; }
.gp-rail { position: relative; flex: 1; height: 4px; border-radius: 999px; background: rgba(255,255,255,.14); cursor: pointer; }
.gp-fill { position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--lp-accent-2), var(--lp-accent)); }
.gp-knob { position: absolute; top: 50%; left: 0%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #eaffc4; transform: translateY(-50%); box-shadow: 0 0 0 3px rgba(200,247,127,.16); opacity: 0; transition: opacity .2s ease; }
.lp-player-bar:hover .gp-knob { opacity: 1; }

/* 响应式 */
@media (max-width: 980px) {
  .lp-main { grid-template-columns: 1fr; gap: 8px; max-width: 560px; padding-bottom: 150px; }
  .lp-side { padding-top: 6px; }
  .lp-side-head { justify-content: center; }
  .lp-side-head i { display: none; }
  .lp-lyric-scroll { height: 210px; }
  .lyric-line { text-align: center; }
  .lp-cta { align-self: center; margin: 18px auto 0; }
  .lp-cover-ring { width: min(64vw, 232px); height: min(64vw, 232px); }
}
@media (max-width: 760px) {
  .lp-top { padding: 16px 18px 2px; }
  .lp-main { padding: 4px 18px 140px; }
  .gp-left { flex: 0 1 150px; }
  .gp-vol { display: none; }
  .gp-time:last-of-type { display: none; }
  #title { margin-top: 10px; }
}

/* lp-fix2：歌词左对齐、底部按钮图标可见 */
.lp-lyrics .lyric-line{text-align:left!important}
.gp-btn{background:linear-gradient(150deg,#e6ffb0,var(--lp-accent-2))!important;color:#10200b!important}
.gp-btn svg{width:16px!important;height:16px!important;fill:currentColor!important}
.gp-vol{background:rgba(255,255,255,.08)!important;color:#cfe0f2!important}
.gp-vol svg{width:15px!important;height:15px!important}
.lp-lyric-scroll{height:min(42vh,320px)!important}
@media (max-width:980px){.lp-lyrics .lyric-line{text-align:center!important}}

/* lp-fix3：底部条按钮（提高权重，避开站点按钮样式） */
body.lp-page #gpToggle{background:linear-gradient(150deg,#e6ffb0,var(--lp-accent-2))!important;color:#10200b!important;
  border:0!important;border-radius:50%!important;box-shadow:0 8px 20px rgba(160,230,110,.28)!important;width:40px!important;height:40px!important}
body.lp-page #gpToggle svg{width:17px!important;height:17px!important;fill:#10200b!important;display:block}
body.lp-page #gpMute{background:rgba(255,255,255,.08)!important;color:#dbe8f7!important;border:1px solid rgba(255,255,255,.1)!important;
  border-radius:50%!important;width:36px!important;height:36px!important}
body.lp-page #gpMute svg{width:15px!important;height:15px!important;fill:#dbe8f7!important;display:block}

/* lp-fix4：底部条图标用字符，避免 svg 被站点样式压扁 */
body.lp-page #gpToggle svg,body.lp-page #gpMute svg{display:none!important}
body.lp-page .gp-ico{font-size:15px;line-height:1;display:block;color:#10200b;transform:translateY(0)}
body.lp-page #gpMute .gp-ico{font-size:14px;color:#dbe8f7}
body.lp-page #gpToggle{display:flex!important;align-items:center!important;justify-content:center!important}

/* lp-fix5：整体垂直居中，内容不必贴顶 */
body.lp-page .lp-main{min-height:calc(100vh - 118px);align-items:center;padding-bottom:96px}
body.lp-page .lp-side{justify-content:center}
body.lp-page .lp-lyric-scroll{height:min(44vh,340px)!important}
@media (max-width:980px){
  body.lp-page .lp-main{min-height:0;align-items:start;padding-bottom:132px}
  body.lp-page .lp-lyric-scroll{height:196px!important}
}

/* lp-fix6：手机端更紧凑，歌词不被底栏压住 */
@media (max-width:760px){
  body.lp-page .lp-cover-ring{width:min(54vw,186px)!important;height:min(54vw,186px)!important}
  body.lp-page #title{font-size:21px!important;margin:8px 0 2px!important}
  body.lp-page #artist{margin-bottom:10px!important;font-size:12px!important}
  body.lp-page .lp-player.song-player{padding:12px 14px!important;gap:9px!important;border-radius:18px!important}
  body.lp-page .lp-play,body.lp-page .play-controls #sharePlay{width:58px!important;height:58px!important}
  body.lp-page .play-controls button{width:40px!important;height:40px!important}
  body.lp-page .lp-lyric-scroll{height:132px!important}
  body.lp-page .lp-side{padding-top:0!important;margin-top:4px!important}
  body.lp-page .lyric-line{font-size:13.5px!important;padding:6px 2px!important}
  body.lp-page .lyric-line.active{font-size:15.5px!important}
  body.lp-page .lp-cta{margin-top:12px!important;padding:10px 18px!important;font-size:12.5px!important}
  body.lp-page .lp-main{padding-bottom:112px!important}
}

/* lp-fix7 */
body.lp-page .lp-lyric-scroll{height:min(46vh,360px)!important}
@media (max-width:760px){
  body.lp-page .lp-lyric-scroll{height:168px!important}
  body.lp-page .lp-side-head{margin-bottom:6px!important}
  body.lp-page .lp-cta{margin-top:10px!important}
}

/* lp-fix8：手机端底部留白，避免被播放条压住 */
@media (max-width:760px){
  body.lp-page .lp-main{padding-bottom:158px!important;gap:4px!important}
  body.lp-page .lp-side{margin-top:0!important}
  body.lp-page .lp-cta{margin-bottom:6px!important}
}

/* lp-nocover：无封面时的黑胶占位 */
body.lp-page .lp-cover-ring.no-cover{background:radial-gradient(circle at 50% 45%,#2a3346,#141a26 62%,#0d121b)}
body.lp-page .lp-cover-ring.no-cover::before{
  content:"♪"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:64px; color:rgba(200,247,127,.55); text-shadow:0 0 40px rgba(200,247,127,.25);
}
body.lp-page .lp-cover-ring.no-cover .lp-cover{display:none}

/* lp-one-player：一个页面只留一个播放器 */
@media (min-width:761px){
  body.lp-page .lp-player-bar{display:none!important}
}
@media (max-width:760px){
  body.lp-page #songPlayer{display:none!important}
  body.lp-page .lp-main{padding-bottom:150px!important}
  body.lp-page .lp-lyric-scroll{height:min(40vh,240px)!important}
}
body.lp-page .gp-skip{
  width:32px!important;height:32px!important;border-radius:50%!important;
  background:rgba(255,255,255,.08)!important;color:#dbe8f7!important;border:0!important;
  font-size:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  box-shadow:none!important;flex:none;cursor:pointer;
}

/* lp-bar-tight：手机底栏塞下 后退/播放/前进 */
@media (max-width:760px){
  body.lp-page .lp-player-bar{gap:8px!important;padding:10px 14px!important}
  body.lp-page .gp-left{flex:0 1 92px!important;gap:8px!important}
  body.lp-page .gp-cover{width:34px!important;height:34px!important}
  body.lp-page .gp-meta span{display:none!important}
  body.lp-page .gp-meta strong{font-size:11.5px!important}
  body.lp-page .gp-btn,body.lp-page #gpToggle{width:36px!important;height:36px!important;min-width:36px!important}
  body.lp-page .gp-skip{width:30px!important;height:30px!important;min-width:30px!important;font-size:13px!important}
  body.lp-page .gp-track{gap:6px!important}
  body.lp-page .gp-time{min-width:28px!important;font-size:10px!important}
  body.lp-page .gp-time:last-of-type{display:none!important}
  body.lp-page .lp-lyric-scroll{height:min(38vh,214px)!important}
}
