
.player { cursor: pointer; }
.player .bar-line { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 3px; border-radius: 3px; background: rgba(0, 0, 0, 0.08); overflow: hidden; }
.player .bar-line i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }

.np-open { overflow: hidden; }
.np {
  position: fixed;
  inset: 0;
  z-index: 300;
  color: #fff;
  background: #2a1d25;
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.33, 1, .68, 1);
  overflow: hidden;
}
.np.show { transform: none; }
.np-bg {
  position: absolute;
  inset: -15%;
  background-size: cover;
  background-position: center;
  filter: blur(70px) saturate(1.6) brightness(.62);
  transform: scale(1.2);
  animation: drift 30s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.35) rotate(8deg); } }
.np-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  padding: calc(18px + env(safe-area-inset-top)) calc(22px + env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) calc(22px + env(safe-area-inset-left));
  max-width: 1300px;
  margin: 0 auto;
}
.np-close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); }
.np-close .ic { color: #fff; transform: rotate(-90deg); }
.np .ic { color: rgba(255, 255, 255, 0.9); }
.np-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.np-art {
  width: min(78vw, 340px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  align-self: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  
  transition: transform .55s cubic-bezier(.34, 1.9, .5, 1);
}
.np-art.paused { transform: none; } 

.np-art { will-change: transform, scale; backface-visibility: hidden; }
.np-title { will-change: transform; transform: translateZ(0); backface-visibility: hidden; }
.np-title h2 { margin: 6px 0 2px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.np-title p { margin: 0; color: rgba(255, 255, 255, 0.65); font-size: 16px; }
.np input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); outline: 0; cursor: pointer; }
.np input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.np input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.np-times { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-top: -8px; font-variant-numeric: tabular-nums; }
.np-ctrl { display: flex; align-items: center; justify-content: space-between; max-width: 360px; width: 100%; align-self: center; }
.np-ctrl button { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s, background .2s; }
.np-ctrl button:hover { background: rgba(255, 255, 255, 0.1); }
.np-ctrl button:active { transform: scale(.9); }
.np-ctrl button.big { width: 70px; height: 70px; }
.np-ctrl button.big .ic { width: 40px; height: 40px; color: #fff; }
.np-ctrl button.on .ic { color: #ff8fb6; }
.np-ctrl small { position: absolute; right: 8px; bottom: 8px; font-size: 9px; font-weight: 800; color: #ff8fb6; }
.np-vol { display: flex; align-items: center; gap: 10px; max-width: 360px; width: 100%; align-self: center; }
.np-vol input { flex: 1; }
.np-right { display: flex; flex-direction: column; min-height: 0; }
.np-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); align-self: flex-start; margin-bottom: 10px; }
.np-tabs button { height: 34px; padding: 0 16px; border-radius: 9px; color: rgba(255, 255, 255, 0.7); font-weight: 600; font-size: 14px; }
.np-tabs button.on { background: rgba(255, 255, 255, 0.22); color: #fff; }


.lyrics {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 19vh 4px 48vh; 
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent);
}
.lyrics::-webkit-scrollbar { display: none; }
.lyrics p {
  margin: 0 0 22px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.85);
  transition: color .4s, opacity .4s, transform .4s, filter .4s;
  transform-origin: left center;
}
.lyrics.synced p { color: rgba(255, 255, 255, 0.32); cursor: pointer; filter: blur(.6px); }
.lyrics.synced p:hover { color: rgba(255, 255, 255, 0.6); }
.lyrics.synced p.past { color: rgba(255, 255, 255, 0.4); }
.lyrics.synced p.on { color: #fff; filter: none; }


.np { --beat: 0; }
.lyrics p { transition: color .4s, opacity .4s, filter .4s, text-shadow .15s ease-out, transform .4s; }

.lyrics.synced p.on {
  transform: none;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.lyrics p.on .ch {
  display: inline-block;
  
  transform: translateY(calc(sin(calc(var(--phase) - var(--c, 0) * 1.3)) * 0.9px));
  will-change: transform;
}
.lyrics p .sp { white-space: pre; }


.np-rhead { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.np-rhead .np-tabs { margin-bottom: 0; }
.np-singwrap { display: flex; gap: 8px; margin-left: auto; }
.np-sing { position: relative; } 
.np-mic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: background .25s, transform .2s; }
.np-mic:hover { background: rgba(255, 255, 255, 0.22); }
.np-mic:active { transform: scale(.92); }
.np-mic .ic { color: #fff; }
.np-mic.on { background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.np-mic.on .ic { color: var(--accent); }

.np-vslider {
  position: absolute; z-index: 5; right: 0; top: 52px;
  width: 42px; height: 170px; border-radius: 21px; overflow: hidden;
  background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 30px rgba(0, 0, 0, .25);
  cursor: ns-resize; touch-action: none;
  opacity: 0; transform: translateY(-8px) scale(.94); transform-origin: top center; pointer-events: none;
  transition: opacity .22s, transform .3s cubic-bezier(.33, 1, .68, 1);
}
.np-vslider.show { opacity: 1; transform: none; pointer-events: auto; }
.np-vslider i { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.92); transition: height .08s linear; }
.np-vslider.drag i { transition: none; }
.np-vslider .ic { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); color: rgba(60, 40, 50, .55); mix-blend-mode: normal; pointer-events: none; }


.np-art.thump:not(.paused) { animation: thump .38s ease-out; }
@keyframes thump {
  0% { scale: 1; }
  25% { scale: min(var(--thump, 1.004), 1.005); } 
  65% { scale: 1; }
  100% { scale: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lyrics p, .lyrics.synced p.on, .lyrics p.on .ch { transform: none !important; text-shadow: none !important; }
  .np-art.thump { animation: none !important; }
}
.lyrics:not(.synced) { padding: 10px 4px 30px; -webkit-mask-image: none; mask-image: none; }
.lyrics:not(.synced) p { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
@media (min-width: 900px), (min-aspect-ratio: 801/1000) and (min-height: 521px) { .lyrics p { font-size: 34px; } }
.np-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(255, 255, 255, 0.7); }
.np-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.np-info { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 4px 0 18px; font-size: 15px; }
.np-info dt { color: rgba(255, 255, 255, 0.55); }
.np-info dd { margin: 0; font-weight: 600; word-break: break-all; }
.np-q { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; cursor: pointer; }
.np-q:hover { background: rgba(255, 255, 255, 0.08); }
.np-q.on { background: rgba(255, 255, 255, 0.16); }
.np-q img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.np-q b { display: block; font-size: 14px; }
.np-q span { font-size: 12px; color: rgba(255, 255, 255, 0.6); }


@media (min-width: 900px), (min-aspect-ratio: 801/1000) and (min-height: 521px) {
  .np-inner { grid-template-columns: minmax(320px, 420px) 1fr; grid-template-rows: auto 1fr; column-gap: 70px; padding: 30px 50px; }
  .np-close { grid-column: 1 / -1; }
  .np-left { justify-content: center; }
  .np-art { width: 100%; }
  .np-right { padding-top: 10px; }
}

@media (max-width: 899px) and (max-aspect-ratio: 4/5), (max-width: 899px) and (max-height: 520px) {
  .np-inner { overflow-y: auto; grid-template-rows: auto auto auto; }
  .np-right { min-height: 70vh; }
  .lyrics { padding-top: 10vh; }
}


.sync-list { max-height: 46vh; overflow-y: auto; border-radius: 12px; background: var(--field); padding: 6px; }
.sync-list div { display: flex; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.sync-list div.cur { background: var(--accent); color: #fff; }
.sync-list div code { width: 64px; flex-shrink: 0; font-variant-numeric: tabular-nums; opacity: .8; }
.upload-prog { height: 6px; border-radius: 3px; background: var(--field); overflow: hidden; margin-top: 8px; }
.upload-prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }


@media (max-width: 899px) and (max-aspect-ratio: 4/5), (max-width: 899px) and (max-height: 520px) {
  
  .np-art { width: min(72vw, 320px); height: min(72vw, 320px); flex-shrink: 0; position: relative; z-index: 0; }
  .np-left { gap: 12px; }
  .np-seek, .np-times, .np-ctrl, .np-vol, .np-title { position: relative; z-index: 1; }
  
  .np-seek { height: 28px !important; margin: -5px 0 -6px; background: linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.25)) center / 100% 6px no-repeat !important; border-radius: 0 !important; }
  .np-seek::-webkit-slider-thumb { width: 18px; height: 18px; }
  .np-times { margin-top: -4px; }
  
  .np-right { height: 72vh; min-height: 0; }
  .lyrics { padding: 18vh 4px 55vh;  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .lyrics p { font-size: 24px; margin-bottom: 18px; }
  
  .lyrics.synced p { filter: none !important; }
  .lyrics p.on .ch { transform: none !important; will-change: auto !important; display: inline; }
  .lyrics.synced p.on { text-shadow: none; }
  .np-title, .np-art { will-change: auto; transform: none; backface-visibility: visible; }
  .np-art.paused { transform: none; }
  .np, .lyrics p, .np-title { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  .np-bg { filter: blur(50px) saturate(1.5) brightness(.6); }
}

.np-art.bump { animation: artBump .42s cubic-bezier(.34, 1.6, .5, 1) !important; }
@keyframes artBump {
  0% { scale: 1; }
  35% { scale: .985; }
  70% { scale: 1.004; }
  100% { scale: 1; }
}

@media (max-width: 899px) and (max-aspect-ratio: 4/5), (max-width: 899px) and (max-height: 520px) {
  .np-inner { grid-template-columns: minmax(0, 1fr); }
  .np-left, .np-right { min-width: 0; max-width: 100%; }
  .lyrics { width: 100%; box-sizing: border-box; padding-right: 12px; overflow-x: hidden; }
  .lyrics p { max-width: 100%; overflow-wrap: anywhere; word-break: keep-all; }
  .np-rhead { flex-wrap: wrap; }
}


.lyrics p .ch { display: inline-block; }
.lyrics p:not(.on) .ch { transform: none !important; }
.lyrics.synced p { filter: none; transition: color .35s ease; }
.lyrics p { backface-visibility: hidden; }

.np-ctrl, .np-vol, .np-tabs { transform: translateZ(0); }

.np-rhead { position: relative; z-index: 6; }
.lyrics p .w { white-space: nowrap; }


.lyrics, .lyrics * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

.lyrics.synced p { cursor: default; }
.lyrics.synced p .ch, .lyrics.synced p .sp { cursor: pointer; }
.lyrics.synced p:hover { color: rgba(255, 255, 255, 0.32); }
.lyrics.synced p.past:hover { color: rgba(255, 255, 255, 0.4); }
.lyrics.synced p:not(.on):has(.ch:hover, .sp:hover) { color: rgba(255, 255, 255, 0.6); }

.lyrics p.on { --p: 0; }
.lyrics p.on .ch {
  opacity: clamp(0.38, calc(0.38 + (var(--p) - var(--c, 0)) * 0.62), 1);
  transform: translateY(calc(-1.6px * clamp(0, min(calc(var(--p) - var(--c, 0)), calc(var(--c, 0) + 1.6 - var(--p))), 0.8) / 0.8)) !important;
  transition: opacity .12s linear, transform .12s linear;
  will-change: auto;
}
@media (max-width: 899px) and (max-aspect-ratio: 4/5), (max-width: 899px) and (max-height: 520px) { .lyrics p.on .ch { transform: none !important; } }
@media (prefers-reduced-motion: reduce) { .lyrics p.on .ch { transform: none !important; } }


.lyrics p.on .ch {
  opacity: clamp(0.38, calc(0.38 + (var(--p) - var(--c, 0) + 1.2) * 0.62 / 3), 1);
  transform: translateY(calc(-1.4px * clamp(0, 1 - (var(--p) - var(--c, 0) - 0.4) * (var(--p) - var(--c, 0) - 0.4) / 2.2, 1))) !important;
  transition: none;
}
@media (max-width: 899px) and (max-aspect-ratio: 4/5), (max-width: 899px) and (max-height: 520px) { .lyrics p.on .ch { transform: none !important; } }
@media (prefers-reduced-motion: reduce) { .lyrics p.on .ch { transform: none !important; } }

.lyrics p { width: fit-content; max-width: 100%; }
.lyrics.synced p.on:hover { color: #fff; }

.wsync-line { padding: 14px; border-radius: 14px; background: var(--field); margin-bottom: 8px; line-height: 1.9; }
.wsync-line.cur { background: #fff; box-shadow: 0 0 0 2px var(--accent) inset; }
.wsync-line .lt { display: block; font-size: 12px; color: var(--gray); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.wsync-line span { display: inline-block; margin: 0 3px 4px 0; padding: 2px 7px; border-radius: 8px; background: rgba(157, 157, 157, .14); font-weight: 600; cursor: pointer; }
.wsync-line span.done { background: var(--accent); color: #fff; }
.wsync-line span.next { box-shadow: 0 0 0 2px var(--accent) inset; }
.wsync-line span small { display: block; font-size: 10px; font-weight: 500; opacity: .85; font-variant-numeric: tabular-nums; }
.wsync-list { max-height: 48vh; overflow-y: auto; }


.lgap { display: flex; gap: 9px; height: 0; overflow: hidden; margin: 0; opacity: 0; transition: height .35s ease, margin .35s ease, opacity .3s; --g: 0; }
.lgap.on { height: 26px; margin: 0 0 22px 2px; opacity: 1; }
.lgap i { width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: #fff; opacity: clamp(0.25, calc(0.25 + (var(--g) * 3 - var(--k)) * 0.75), 1); }
.lgap i:nth-child(1) { --k: 0; } .lgap i:nth-child(2) { --k: 1; } .lgap i:nth-child(3) { --k: 2; }
.lgap.on { animation: gapBreath 2.4s ease-in-out infinite; transform-origin: left center; }
@keyframes gapBreath { 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .lgap.on { animation: none; } }


.seg-rate { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--field); }
.seg-rate button { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.seg-rate button.on { background: #fff; color: var(--accent-deep); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.wsync-line em.lt { font-style: normal; display: block; font-size: 12px; color: var(--gray); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.wsync-line span.ended { border-right: 3px solid var(--accent-deep); }

.wsync-line span.done.fresh { background: var(--accent-deep, #c2477a); }


.lyrics p.on .ch {
  transform: translateY(calc(-1.5px * clamp(0, 1 - (var(--p) - var(--c, 0) - 0.5) * (var(--p) - var(--c, 0) - 0.5) / 4, 1))) !important;
  transition: transform .28s cubic-bezier(.25, .8, .35, 1);
  will-change: transform;
}
@media (max-width: 899px) and (max-aspect-ratio: 4/5), (max-width: 899px) and (max-height: 520px) { .lyrics p.on .ch { transform: none !important; will-change: auto; } }
@media (prefers-reduced-motion: reduce) { .lyrics p.on .ch { transform: none !important; } }


.lyrics p.lgline { display: flex; gap: 9px; height: 0; margin: 0; opacity: 0; overflow: hidden; transition: height .35s ease, margin .35s ease, opacity .3s; --g: 0; cursor: default; }
.lyrics p.lgline.on { height: 26px; margin: 0 0 22px 2px; opacity: 1; animation: gapBreath 2.4s ease-in-out infinite; transform-origin: left center; }
.lyrics p.lgline i { width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: #fff; opacity: clamp(0.25, calc(0.25 + (var(--g) * 3 - var(--k)) * 0.75), 1); }
.lyrics p.lgline i:nth-child(1) { --k: 0; } .lyrics p.lgline i:nth-child(2) { --k: 1; } .lyrics p.lgline i:nth-child(3) { --k: 2; }

.ws-add { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 4px; border-radius: 50%; background: rgba(157, 157, 157, .16); color: var(--ink-soft); vertical-align: middle; }
.ws-add:hover { background: var(--accent); color: #fff; }
.ws-add.top { display: flex; gap: 6px; width: auto; height: auto; padding: 7px 12px; margin: 0 0 8px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.wsync-line.gap { background: rgba(157, 157, 157, .08); border: 1.5px dashed rgba(157, 157, 157, .4); }
.wsync-line.gap.cur { border-color: var(--accent); }
.ws-del { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; border-radius: 50%; vertical-align: middle; }
.ws-del:hover { background: rgba(229, 72, 77, .15); color: #e5484d; }


.wsync-line { cursor: pointer; transition: box-shadow .2s, background .2s; }
.wsync-line:hover { box-shadow: 0 0 0 1.5px rgba(157, 157, 157, .35) inset; }
.wsync-line.seekfx { box-shadow: 0 0 0 2px var(--accent) inset; }

.gap-chip { display: inline-block; padding: 2px 9px; border-radius: 8px; background: rgba(157, 157, 157, .14); font-weight: 600; color: var(--ink-soft); }
.gap-warn { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 12px; font-weight: 700; color: #e5484d; }
.gap-warn .ic { width: 14px; height: 14px; color: #e5484d; }


.wsync-list .wsync-line { margin-bottom: 0; }
.ws-slot { position: relative; height: 22px; display: grid; place-items: center; }
.ws-slot::before { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; border-top: 1px dashed rgba(157, 157, 157, .35); opacity: 0; transition: opacity .15s; }
.ws-slot:hover::before { opacity: 1; }
.ws-pm { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink-soft); box-shadow: 0 0 0 1px rgba(157, 157, 157, .4); opacity: .55; transition: opacity .15s, background .15s, color .15s, transform .15s; }
.ws-pm .ic { width: 13px; height: 13px; }
.ws-slot:hover .ws-pm, .ws-pm:focus-visible { opacity: 1; }
.ws-pm:hover { background: var(--accent); color: #fff; box-shadow: none; transform: scale(1.1); }
.ws-pm.minus { opacity: .8; }
.ws-pm.minus:hover { background: #e5484d; }


.lyrics p.on .ch {
  transform: translateY(calc(
    -1.5px * clamp(0, 1 - (var(--p) - var(--c, 0) - 0.5) * (var(--p) - var(--c, 0) - 0.5) / 4, 1)
    + sin(calc(var(--phase, 0) * 1.6 - var(--c, 0) * 0.9)) * 0.45px
  )) !important;
}
@media (max-width: 899px) and (max-aspect-ratio: 4/5), (max-width: 899px) and (max-height: 520px) { .lyrics p.on .ch { transform: none !important; } }
@media (prefers-reduced-motion: reduce) { .lyrics p.on .ch { transform: none !important; } }


.lyrics p.on .ch { opacity: clamp(0.4, calc(0.4 + (var(--p) - var(--c, 0) + 0.5) * 0.6 / 1.4), 1); }


@media (min-width: 900px), (min-aspect-ratio: 801/1000) and (min-height: 521px) {
  .lyrics.synced {
    padding-top: 9vh;
    -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 80%, transparent);
    mask-image: linear-gradient(transparent, #000 7%, #000 80%, transparent);
  }
}


.lyrics.synced p:not(.on) { opacity: calc(1 - min(var(--d, 1), 8) * 0.1); transition: color .35s ease, opacity .6s ease; }
.lyrics.synced p:not(.on):has(.ch:hover, .sp:hover) { opacity: 1; }

.lyrics p .bgv { display: block; font-size: .5em; font-weight: 700; line-height: 1.35; color: rgba(255, 255, 255, .78); max-height: 0; opacity: 0; margin-top: 0; transform: translateY(-6px); overflow: hidden; pointer-events: none; transition: max-height .4s ease, opacity .35s ease, margin .4s ease, transform .4s ease; }
.lyrics p .bgv.show { max-height: 3em; opacity: 1; margin-top: 5px; transform: none; }


.lyrics p.on .ch {
  opacity: clamp(0.4, calc((var(--p) - var(--c, 0)) * 100), 1);
  transform: translateY(calc(
    -1.5px * clamp(0, calc((var(--p) - var(--c, 0)) * 100), 1) * clamp(0, 1 - (var(--p) - var(--c, 0) - 1) * (var(--p) - var(--c, 0) - 1) / 2.5, 1)
    + sin(calc(var(--phase, 0) * 1.6 - var(--c, 0) * 0.9)) * 0.45px
  )) !important;
  transition: opacity .15s ease-out, transform .28s cubic-bezier(.25, .8, .35, 1);
}
@media (max-width: 899px) and (max-aspect-ratio: 4/5), (max-width: 899px) and (max-height: 520px) { .lyrics p.on .ch { transform: none !important; } }
@media (prefers-reduced-motion: reduce) { .lyrics p.on .ch { transform: none !important; } }


.lyrics p .bgv.show { max-height: 0; opacity: 0; margin-top: 0; transform: translateY(-6px); }
.lyrics p.on .bgv { max-height: 3em; opacity: 1; margin-top: 5px; transform: none; color: rgba(255, 255, 255, .45); }


.np-lx { position: relative; }
.np-lxbtn.busy .ic { animation: lxBusy 1s ease-in-out infinite; }
@keyframes lxBusy { 50% { opacity: .35; } }
.np-lxmenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 8; min-width: 168px; padding: 6px; border-radius: 14px; background: rgba(40, 40, 46, .72); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); box-shadow: 0 12px 34px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(-4px) scale(.97); transform-origin: top right; pointer-events: none; transition: opacity .18s, transform .18s; }
.np-lx.open .np-lxmenu { opacity: 1; transform: none; pointer-events: auto; }
.np-lxmenu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 9px; color: #fff; font-size: 14px; font-weight: 600; text-align: left; }
.np-lxmenu button:hover { background: rgba(255, 255, 255, .12); }
.np-lxmenu button .ic { color: #fff; opacity: 0; }
.np-lxmenu button[aria-checked="true"] .ic { opacity: 1; }
.lyrics p .lx { display: block; font-size: .52em; font-weight: 600; line-height: 1.35; margin-top: 4px; color: rgba(255, 255, 255, .42); pointer-events: none; }
.lyrics p .lx-pr { font-style: normal; }
.lyrics p.on .lx { color: rgba(255, 255, 255, .72); }


.lyrics.synced {
  -webkit-mask-image: linear-gradient(transparent 0%, rgba(0, 0, 0, .25) 8%, rgba(0, 0, 0, .7) 15%, #000 21%, #000 50%, rgba(0, 0, 0, .55) 72%, rgba(0, 0, 0, .18) 88%, transparent 100%);
  mask-image: linear-gradient(transparent 0%, rgba(0, 0, 0, .25) 8%, rgba(0, 0, 0, .7) 15%, #000 21%, #000 50%, rgba(0, 0, 0, .55) 72%, rgba(0, 0, 0, .18) 88%, transparent 100%);
}
@media (min-width: 900px), (min-aspect-ratio: 801/1000) and (min-height: 521px) {
  
  .lyrics.synced {
    -webkit-mask-image: linear-gradient(transparent 0%, rgba(0, 0, 0, .3) 4%, rgba(0, 0, 0, .75) 8%, #000 11%, #000 45%, rgba(0, 0, 0, .55) 68%, rgba(0, 0, 0, .18) 86%, transparent 100%);
    mask-image: linear-gradient(transparent 0%, rgba(0, 0, 0, .3) 4%, rgba(0, 0, 0, .75) 8%, #000 11%, #000 45%, rgba(0, 0, 0, .55) 68%, rgba(0, 0, 0, .18) 86%, transparent 100%);
  }
}
.lyrics.synced p:not(.on) { opacity: calc(1 - min(var(--d, 1), 7) * 0.12); }


.lyrics p.has-pr { line-height: 2.05; }
.lyrics p .w { position: relative; }
.lyrics p .lxw { position: absolute; left: 0; top: calc(100% - .12em); font-size: .5em; font-weight: 600; line-height: 1; white-space: nowrap; color: rgba(255, 255, 255, .42); pointer-events: none; letter-spacing: 0; }
.lyrics p.on .lxw { color: rgba(255, 255, 255, .72); }
.lyrics p .lx { text-align: left; }


.lxe-list { max-height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.lxe-row { padding: 12px; border-radius: 14px; background: var(--field); display: flex; flex-direction: column; gap: 6px; }
.lxe-row b { font-size: 15px; }
.lxe-row label { display: flex; align-items: center; gap: 8px; }
.lxe-row label span { width: 34px; flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--gray); }
.lxe-row .box { height: 38px; background: #fff; }


.lyrics p.on .ch {
  --b: clamp(0, calc((var(--p) - var(--c, 0)) * (2.6 - var(--p) + var(--c, 0)) / 1.69), 1);
  transform-origin: 50% 85%;
  transform:
    translateY(calc(-2px * var(--b) + sin(calc(var(--phase, 0) * 1.6 - var(--c, 0) * 0.9)) * 0.45px))
    scale(calc(1 + 0.06 * var(--b))) !important;
  transition: opacity .15s ease-out, transform .22s cubic-bezier(.25, .8, .35, 1);
}
@media (max-width: 899px) and (max-aspect-ratio: 4/5), (max-width: 899px) and (max-height: 520px) { .lyrics p.on .ch { transform: none !important; } }
@media (prefers-reduced-motion: reduce) { .lyrics p.on .ch { transform: none !important; } }
html.no-lyric-motion .lyrics p.on .ch { transform: none !important; }


.np-lxmenu {
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25),
    0 8px 30px rgba(120, 40, 80, 0.12);
}
.np-lxmenu button { color: var(--ink); }
.np-lxmenu button:hover { background: rgba(255, 255, 255, 0.5); }
.np-lxmenu button .ic { color: var(--accent); }


.np-lxmenu, .np-tabs, .np-mic, .np-close, .np-vslider {
  background: var(--lgd-bg);
  -webkit-backdrop-filter: var(--lgd-blur);
  backdrop-filter: var(--lgd-blur);
  border: 1px solid var(--lgd-edge);
  box-shadow: var(--lgd-shadow);
}
.np-mic.on { background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .8)); }
.np-lxmenu button { color: #fff; }
.np-lxmenu button:hover { background: rgba(255, 255, 255, .14); }
.np-lxmenu button .ic { color: #fff; }
.np-tabs button.on { background: rgba(255, 255, 255, .24); box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, .45); }


@media (max-width: 899px) and (max-aspect-ratio: 4/5), (max-width: 899px) and (max-height: 520px) {
  .lyrics.synced {
    padding-top: 14vh;
    -webkit-mask-image: linear-gradient(transparent 0%, rgba(0, 0, 0, .3) 6%, rgba(0, 0, 0, .75) 12%, #000 17%, #000 50%, rgba(0, 0, 0, .55) 72%, rgba(0, 0, 0, .18) 88%, transparent 100%);
    mask-image: linear-gradient(transparent 0%, rgba(0, 0, 0, .3) 6%, rgba(0, 0, 0, .75) 12%, #000 17%, #000 50%, rgba(0, 0, 0, .55) 72%, rgba(0, 0, 0, .18) 88%, transparent 100%);
  }
}

@media (max-width: 899px) and (max-aspect-ratio: 4/5), (max-width: 899px) and (max-height: 520px) {
  .lyrics.synced {
    padding-top: 11vh;
    -webkit-mask-image: linear-gradient(transparent 0%, rgba(0, 0, 0, .3) 4%, rgba(0, 0, 0, .75) 9%, #000 13%, #000 50%, rgba(0, 0, 0, .55) 72%, rgba(0, 0, 0, .18) 88%, transparent 100%);
    mask-image: linear-gradient(transparent 0%, rgba(0, 0, 0, .3) 4%, rgba(0, 0, 0, .75) 9%, #000 13%, #000 50%, rgba(0, 0, 0, .55) 72%, rgba(0, 0, 0, .18) 88%, transparent 100%);
  }
}

@media (max-width: 899px) and (min-aspect-ratio: 801/1000) and (min-height: 521px) {
  .np-inner { grid-template-columns: minmax(230px, 40%) 1fr; column-gap: 28px; padding: 20px 22px; }
  .np-left .np-art { max-width: 100%; }
  .lyrics p { font-size: 26px; }
}

.lyrics p .sp { white-space: normal; }
.lyrics p { overflow-wrap: anywhere; }
.lyrics p .w { white-space: nowrap; }
.lyrics p .lx { max-width: 100%; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 899px) and (max-aspect-ratio: 4/5), (max-width: 899px) and (max-height: 520px) {
  .lyrics.synced {
    padding-top: 9vh;
    -webkit-mask-image: linear-gradient(transparent 0%, rgba(0, 0, 0, .3) 3%, rgba(0, 0, 0, .75) 7%, #000 10%, #000 50%, rgba(0, 0, 0, .55) 72%, rgba(0, 0, 0, .18) 88%, transparent 100%);
    mask-image: linear-gradient(transparent 0%, rgba(0, 0, 0, .3) 3%, rgba(0, 0, 0, .75) 7%, #000 10%, #000 50%, rgba(0, 0, 0, .55) 72%, rgba(0, 0, 0, .18) 88%, transparent 100%);
  }
}

@media (max-width: 899px) and (min-aspect-ratio: 801/1000) and (min-height: 521px) {
  .np-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0; padding: 20px 0; }
  .np-left { padding: 0 22px; min-width: 0; }
  .np-right { padding: 10px 22px 0; min-width: 0; }
}
@media (max-width: 899px) and (min-aspect-ratio: 801/1000) and (min-height: 521px) { .np-close { margin-left: 22px; } }

@media (max-width: 899px) and (min-aspect-ratio: 801/1000) and (min-height: 521px) {
  .np-left { gap: 10px; padding: 0 30px; justify-content: center; }
  .np-left .np-art { width: 84%; max-width: 320px; align-self: center; }
  .np-left .np-title, .np-left .np-seek, .np-left .np-times { width: 84%; max-width: 320px; align-self: center; }
  .np-title h2 { font-size: 19px; }
  .np-title p { font-size: 14px; }
  .np-ctrl { max-width: 290px; }
  .np-ctrl button { width: 42px; height: 42px; }
  .np-ctrl button.big { width: 58px; height: 58px; }
  .np-ctrl button.big .ic { width: 34px; height: 34px; }
  .np-vol { max-width: 290px; }
  .np-right { overflow: visible; }
  .np-rhead { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin-left: -60px; width: calc(100% + 60px); }
  .np-tabs { flex-shrink: 0; }
  .np-tabs button { white-space: nowrap; }
}

@media (max-width: 899px) and (max-aspect-ratio: 4/5), (max-width: 899px) and (max-height: 520px) {
  .np-rhead { flex-wrap: nowrap; align-items: center; gap: 6px; }
  .np-tabs { flex-shrink: 1; min-width: 0; gap: 2px; padding: 3px; }
  .np-tabs button { height: 32px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
  .np-lx, .np-singwrap { flex-shrink: 0; }
  .np-singwrap { gap: 6px; }
  .np-rhead .np-mic { width: 36px; height: 36px; }
  .np-rhead .np-mic .ic { width: 19px; height: 19px; }
  .np-lx { margin-left: auto; }
  .np-lx + .np-singwrap { margin-left: 0; }
  .np-vslider { top: 44px; width: 36px; }
}
@media (max-width: 360px) { .np-tabs button { padding: 0 7px; font-size: 12px; } }
