/* Full-screen synced lyrics view (shared across the three sites).
   Each site sets --lx-font (lyrics typeface) on :root; the accent comes from the song. */
html.lx-open, html.lx-open body { overflow: hidden; }
.lx { position: fixed; inset: 0; z-index: 1000; color: #fff; font-family: var(--lx-font, system-ui, sans-serif); animation: lx-in .35s cubic-bezier(.2,.7,.2,1) both; -webkit-font-smoothing: antialiased; }
.lx__bg { position: absolute; inset: 0; overflow: hidden; background: #08080c; }
.lx__bg img { position: absolute; left: -25%; top: -25%; width: 150%; height: 150%; object-fit: cover; filter: blur(80px) saturate(1.5) brightness(.5); animation: lx-drift 40s ease-in-out infinite alternate; }
.lx__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 20% 10%, color-mix(in srgb, var(--lx-ac) 22%, transparent), transparent 70%), linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.5)); }

.lx__wrap { position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); max-width: 1240px; margin-inline: auto;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px)); }
.lx__side { display: grid; gap: 14px; padding-right: 56px; }
.lx__head { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.lx__art { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); }
.lx__id { min-width: 0; }
.lx__title { margin: 0; font-weight: 800; font-size: 1.12rem; line-height: 1.2; letter-spacing: -.01em; }
.lx__sub { margin: 3px 0 0; font-size: .82rem; color: rgba(255,255,255,.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.lx__ctrl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.lx__play { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: #fff; color: #111; font: 600 .88rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer; transition: transform .15s; }
.lx__play:active { transform: scale(.96); }
.lx__pi { display: grid; }
.lx__play svg { width: 18px; height: 18px; fill: currentColor; }
.lx__prog { position: relative; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); cursor: pointer; }
.lx__prog::before { content: ""; position: absolute; inset: -10px 0; }
.lx__prog i { position: absolute; inset: 0 auto 0 0; width: var(--lx-p, 0%); border-radius: inherit; background: #fff; }
.lx__time { display: flex; gap: 6px; font-size: .74rem; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.6); }
.lx__time .lx__cur::after { content: " /"; }
.lx__x { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lx__x:hover { background: rgba(255,255,255,.24); }
.lx__x svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }

/* the scrolling lyric column, faded at the top and bottom */
.lx__stage { position: relative; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; outline: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 70%, transparent 100%); }
.lx__stage::-webkit-scrollbar { display: none; }
.lx__lines { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .38em; padding: 26vh 0 55vh; max-width: 30ch; font-size: clamp(1.6rem, 1.05rem + 2.6vw, 2.75rem); }
.lx__l { all: unset; box-sizing: border-box; display: block; cursor: pointer; font-weight: 800; font-size: 1em; line-height: 1.16; letter-spacing: -.02em; padding: .08em .3em; margin-left: -.3em; border-radius: 12px;
  color: rgba(255,255,255,.82); transform-origin: left center; overflow-wrap: anywhere;
  transition: color .5s ease, opacity .5s ease, filter .5s ease, transform .6s cubic-bezier(.2,.7,.2,1), text-shadow .5s ease;
  animation: lx-line .5s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: var(--d, 0ms); }
.lx__l:focus-visible { outline: 2px solid var(--lx-ac); outline-offset: 2px; }
.lx__gap { display: block; height: .7em; }
.lx__empty { font-size: .7em; font-weight: 700; color: rgba(255,255,255,.7); }

/* synced: dim everything, highlight the line being sung */
.lx.is-sync .lx__l { color: rgba(255,255,255,.3); filter: blur(1.2px); }
.lx.is-sync .lx__l.is-past { color: rgba(255,255,255,.4); }
.lx.is-sync .lx__l.is-now { color: var(--lx-ac); filter: none; transform: scale(1.04); text-shadow: 0 0 32px color-mix(in srgb, var(--lx-ac) 55%, transparent); }
.lx.is-sync .lx__l.is-now + .lx__l, .lx.is-sync .lx__l:has(+ .lx__l.is-now) { filter: blur(.5px); }
.lx .lx__l:hover { color: rgba(255,255,255,.9); filter: none; background: rgba(255,255,255,.07); }
.lx.is-sync .lx__l.is-now:hover { color: var(--lx-ac); }

@media (min-width: 900px) {
  .lx__wrap { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 64px; padding-top: 0; padding-inline: 48px; }
  .lx__side { align-self: center; padding-right: 0; gap: 22px; }
  .lx__head { grid-template-columns: 1fr; gap: 20px; }
  .lx__art { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; box-shadow: 0 30px 70px -24px rgba(0,0,0,.85); }
  .lx__title { font-size: 1.5rem; }
  .lx__sub { font-size: .92rem; white-space: normal; }
  .lx__stage { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 70%, transparent 100%); }
  .lx__lines { padding: 38vh 0 55vh; font-size: clamp(2rem, 1rem + 2vw, 3rem); }
  .lx__x { top: 24px; right: 24px; }
}

@keyframes lx-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes lx-line { from { opacity: 0; transform: translateY(14px); } }
@keyframes lx-drift { to { transform: translate(6%, -4%) rotate(8deg) scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .lx, .lx__l, .lx__bg img { animation: none !important; }
  .lx__l { transition: color .2s, opacity .2s !important; }
  .lx.is-sync .lx__l, .lx.is-sync .lx__l.is-now { transform: none; filter: none; }
}
