/* ── Lyrics (track C) ─────────────────────────────────────────────────────
   A song surface: the panel floats over the Now Playing mesh (--c1..3) with a soft veil.
   Controls keep the clay --brand. */

.np > .np-inner { transition: opacity .24s var(--ease), visibility 0s .24s; }
.np.lyr-open > .np-inner { opacity: 0; visibility: hidden; }

.lyr {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  max-width: 540px; margin: 0 auto;
  padding: calc(var(--safe-t) + 4px) 0 calc(var(--safe-b) + 10px);
  background: linear-gradient(180deg, rgb(0 0 0 / .12), rgb(0 0 0 / .32));
  opacity: 0; transform: translate3d(0, 18px, 0);
  transition: opacity .24s var(--ease), transform .32s var(--ease);
}
.lyr.show { opacity: 1; transform: none; }

.lyr-head { display: flex; align-items: center; gap: 10px; height: 56px; padding: 6px 20px 0; }
.lyr-head .icon-btn { width: 38px; height: 38px; background: rgb(255 255 255 / .12); }
.lyr-head .icon-btn .ic { width: 22px; height: 22px; }
.lyr-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.lyr-titles strong, .lyr-titles small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyr-titles strong { font-size: 14px; font-weight: 650; }
.lyr-titles small { font-size: 12.5px; color: rgb(255 255 255 / .62); }

.lyr-scroll {
  position: relative; flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  padding: 26vh 28px 46vh;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 10%, #000 78%, transparent);
}
.lyr-scroll::-webkit-scrollbar { display: none; }

.lyr-line {
  display: block; width: 100%; margin: 0 0 20px; padding: 2px 0;
  font: inherit; font-size: clamp(25px, 7.2vw, 34px); font-weight: 700; line-height: 1.32;
  color: #fff; text-align: start; unicode-bidi: plaintext; overflow-wrap: anywhere;
}
.lyr.synced .lyr-line {
  opacity: .3; filter: blur(1.3px); transform: scale(.955); transform-origin: right center;
  transition: opacity .45s var(--ease), filter .45s var(--ease), transform .6s var(--spring);
  cursor: pointer;
}
.lyr.synced .lyr-line:dir(ltr) { transform-origin: left center; }
.lyr.synced .lyr-line.on { opacity: 1; filter: none; transform: none; }
.lyr.synced .lyr-line.gap { font-size: 22px; letter-spacing: .2em; }
.lyr.synced.browsing .lyr-line { filter: none; opacity: .55; }
.lyr.synced.browsing .lyr-line.on { opacity: 1; }
.lyr.synced .lyr-line:active { transform: scale(.94); }
.lyr.plain .lyr-scroll { padding-top: 24px; padding-bottom: 30vh; }
.lyr.plain .lyr-line { font-size: 21px; font-weight: 600; margin-bottom: 6px; opacity: .92; }

.lyr-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 26vh; margin-top: -10vh; text-align: center; color: rgb(255 255 255 / .72);
}
.lyr-empty h3 { color: #fff; font-size: 20px; font-weight: 650; }
.lyr-empty-ic { width: 38px; height: 38px; opacity: .7; }
.lyr-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.lyr-spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid rgb(255 255 255 / .2); border-top-color: var(--brand);
  animation: lyrspin .9s linear infinite;
}
@keyframes lyrspin { to { transform: rotate(360deg); } }

.lyr-bar { display: flex; align-items: center; justify-content: center; gap: 28px; padding-top: 6px; }
.lyr-bar .icon-btn .ic { width: 28px; height: 28px; }
.lyr-bar .lyr-play { width: 56px; height: 56px; background: rgb(255 255 255 / .14); }
.lyr-bar .lyr-play .ic { width: 26px; height: 26px; }

/* add sheet */
.field.lyr-paste { height: 190px; padding: 12px 14px; line-height: 1.7; resize: vertical; }

/* sync editor sheet */
.lsync-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lsync-now { font-variant-numeric: tabular-nums; min-width: 52px; font-size: 17px; }
.lsync-list { display: flex; flex-direction: column; gap: 2px; }
.lsync-line {
  display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 11px 12px;
  border-radius: var(--r-sm); text-align: start; color: var(--ink-2); font-size: 16px;
  transition: background-color .2s, color .2s;
}
.lsync-line.done { color: var(--ink); }
.lsync-line.next { background: var(--brand-12); color: var(--ink); box-shadow: inset 0 0 0 1px var(--brand-24); }
.lsync-t { flex: none; min-width: 58px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.lsync-line.done .lsync-t { color: var(--brand-ink); }

@media (prefers-reduced-motion: reduce) {
  .lyr, .lyr.synced .lyr-line, .np > .np-inner { transition: none; }
  .lyr.synced .lyr-line { filter: none; transform: none; }
  .lyr-spin { animation-duration: 2.4s; }
}
