/* 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; }
}

/* ---------- full controls (when the site loads player-panel.js) ---------- */
.lx--swap { animation: none; }
.lx--swap .lx__l { animation-duration: .35s; }
.lx__ctrl--full { display: grid; grid-template-columns: 1fr; gap: 6px; }
.lx__seekrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: .74rem; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.62); }
.lx__ctrl--full .lx__prog { height: 5px; touch-action: none; }
.lx__ctrl--full .lx__prog::after { content: ""; position: absolute; top: 50%; left: var(--lx-p, 0%); width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); opacity: 0; transition: opacity .15s; }
.lx__ctrl--full .lx__prog:hover::after, .lx__ctrl--full .lx__prog.is-drag::after, .lx__ctrl--full .lx__prog:focus-visible::after { opacity: 1; }
.lx__prog:focus-visible { outline: 2px solid var(--lx-ac); outline-offset: 6px; }
.lx__btns { display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.lx__ib { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background .15s, color .15s; }
.lx__ib:hover { background: rgba(255,255,255,.12); }
.lx__ib:focus-visible, .lx__songs:focus-visible, .lx__play:focus-visible { outline: 2px solid var(--lx-ac); outline-offset: 2px; }
.lx__ib svg, .lx__songs svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.lx__ib svg .f, .lx__songs svg .f { fill: currentColor; stroke: none; }
.lx__ib svg text { fill: currentColor; stroke: none; font: 700 6.4px/1 system-ui, sans-serif; }
.lx__ib.is-on { color: var(--lx-ac); }
.lx__ib.is-on::before { content: ""; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.lx__ctrl--full .lx__play { height: 44px; padding: 0 18px 0 14px; }
.lx__util { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lx .pp-vol { --pp-accent: #fff; --pp-text: #fff; --pp-track: rgba(255,255,255,.2); display: flex; align-items: center; gap: 2px; flex: 1; max-width: 190px; }
.lx .pp-vol input { flex: 1; min-width: 50px; }
.lx__songs { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font: 600 .84rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer; transition: background .15s, border-color .15s; }
.lx__songs:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
@media (max-width: 899px) {
  /* phones: song info at the top, lyrics in the middle, controls along the bottom */
  .lx--full .lx__wrap { grid-template-rows: auto minmax(0, 1fr) auto; }
  .lx--full .lx__side { display: contents; }
  .lx--full .lx__head { grid-row: 1; padding-right: 56px; }
  .lx--full .lx__stage { grid-row: 2; }
  .lx--full .lx__ctrl { grid-row: 3; padding: 8px 0 calc(10px + env(safe-area-inset-bottom, 0px)); }
  .lx--full .lx__lines { padding: 16vh 0 40vh; }
}
@media (max-width: 360px) { .lx__ib { width: 34px; height: 34px; } .lx__ctrl--full .lx__play { padding: 0 12px 0 10px; } }
