.dock .lyrbtn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock .lyrbtn.active { color: var(--pink); background: rgba(234, 169, 240, .12); }
.lp-wrap {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 22;
  bottom: calc(14px + 70px + 12px + env(safe-area-inset-bottom, 0px));
  width: min(1040px, calc(100% - 24px));
  display: flex; justify-content: flex-end; pointer-events: none;
}
.lp {
  pointer-events: auto;
  width: min(420px, 100%);
  display: flex; flex-direction: column;
  height: min(520px, calc(100vh - 200px)); height: min(520px, calc(100dvh - 200px));
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02)), rgba(12, 10, 18, .9);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  transform-origin: 90% 100%;
  animation: lp-in .24s cubic-bezier(.2, .8, .2, 1);
}
.lp[hidden] { display: none; }
.lp.leaving { pointer-events: none; animation: lp-out .2s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes lp-in  { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lp-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(.97); } }

.lp-head { padding: 16px 20px 13px; border-bottom: 1px solid var(--line); }
.lp-head h3 { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; font-weight: 600; }
.lp-head h3 svg { width: 17px; height: 17px; fill: none; stroke: var(--pink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-sub { margin-top: 3px; color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lp-body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 26px 26px 40%; scrollbar-width: none; position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 28px, #000 calc(100% - 48px), transparent 100%);
}
.lp-body::-webkit-scrollbar { display: none; }
.lp-line {
  padding: 8px 10px; margin: 0 -10px 10px; border-radius: 12px;
  font-size: 1.32rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em;
  color: rgba(243, 243, 247, .34); cursor: pointer;
  transition: color .45s ease, text-shadow .45s ease, opacity .45s ease, background-color .2s;
  animation: lp-linein .36s cubic-bezier(.2, .9, .25, 1.1) backwards;
  animation-delay: calc(40ms + var(--i, 0) * 22ms);
}
.lp-line:hover { background: rgba(255, 255, 255, .05); color: rgba(243, 243, 247, .65); }
.lp-line.past { color: rgba(243, 243, 247, .5); }
.lp-line.on { color: #fff; text-shadow: 0 0 22px rgba(234, 169, 240, .35); }
.lp-line.plain { color: rgba(243, 243, 247, .85); cursor: default; font-weight: 600; font-size: 1.1rem; margin-bottom: 2px; padding-top: 4px; padding-bottom: 4px; }
.lp-line.plain:hover { background: none; }
.lp-foot { margin-top: 14px; color: var(--muted); font-size: .75rem; }
@keyframes lp-linein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lp-empty {
  margin: 4px 0; padding: 26px 22px; text-align: center;
  border-radius: 16px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  animation: lp-in .3s cubic-bezier(.2, .8, .2, 1);
}
.lp-empty b { display: block; font-size: .98rem; font-weight: 700; }
.lp-empty p { margin-top: 8px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.lp-load { display: flex; flex-direction: column; gap: 22px; padding: 10px 0; }
.lp-load span {
  display: block; height: 20px; border-radius: 8px; background: #2c2440;
  animation: lp-pulse 1.3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -120ms);
}
@keyframes lp-pulse { 0%, 100% { opacity: .25; } 50% { opacity: .8; } }
body:has(.lp:not([hidden])) .sd:not(.open) { opacity: 0; pointer-events: none; transition: opacity .2s; }
.sd { transition: opacity .25s; }

@media (min-width: 1500px) { .lp-wrap { width: min(1200px, calc(100% - 24px)); } }
@media (max-width: 560px) {
  .lp-wrap { width: calc(100% - 16px); bottom: calc(14px + 62px + 10px + env(safe-area-inset-bottom, 0px)); }
  .lp { width: 100%; }
  .lp { height: min(480px, calc(100dvh - 180px)); }
  .lp-line { font-size: 1.2rem; }
  .lp-body { padding: 20px 20px 40%; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .lp-wrap { bottom: calc(14px + 54px + 8px + env(safe-area-inset-bottom, 0px)); }
  .lp { height: calc(100dvh - 110px); }
  .lp-line { font-size: 1.05rem; margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp, .lp-line, .lp-empty { animation: none; }
}
