@font-face { font-family: "Bricolage Display"; src: url(../fonts/bricolage-display.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Bricolage UI"; src: url(../fonts/bricolage-ui.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Noto Sans SC"; src: url(../fonts/noto-sc.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #121212;
  --bg-deep: #0a0a0a;
  --s1: #181818;
  --s2: #202020;
  --s3: #282828;
  --line: #2e2e2e;
  --text: #ffffff;
  --muted: #b3b3b3;
  --faint: #7a7a7a;
  --green: #1ed760;
  --green-press: #1aba54;
  --green-deep: #0e8f43;
  --on-green: #08140c;
  --display: "Bricolage Display", "Helvetica Neue", Arial, sans-serif;
  --ui: "Bricolage UI", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --zh: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
svg { display: block; }
:lang(zh-Hans) { font-family: var(--zh); letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 999px; background: var(--green); color: var(--on-green); font-weight: 700; }
.skip:focus { top: 12px; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo-word { font: 800 25px/1 var(--display); letter-spacing: -0.025em; color: var(--text); padding-bottom: 2px; }
.logo-xl svg { width: 72px; height: 72px; }
.logo-xl .logo-word { font-size: 64px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font: 700 15px/1 var(--body); letter-spacing: .005em; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .15s; }
.btn svg { width: 18px; height: 18px; }
.btn-green { background: var(--green); color: var(--on-green); }
.btn-green:hover { background: #3be477; transform: scale(1.03); }
.btn-green:active { background: var(--green-press); transform: scale(.98); }
.btn-ghost { box-shadow: inset 0 0 0 1px #6a6a6a; color: var(--text); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px #fff; transform: scale(1.03); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--s3); font: 600 13.5px/1 var(--body); color: var(--text); transition: background .15s, color .15s; }
.pill svg { width: 16px; height: 16px; }
.pill:hover { background: #333; }
.pill[aria-pressed="true"] { background: var(--green); color: var(--on-green); }

/* typographic mix covers */
.mix-cover { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--mx-fg); color: var(--mx-fg); isolation: isolate; font-size: 16px; }
.mix-cover::before { content: ""; position: absolute; inset: 0; background: var(--mx-bg); clip-path: polygon(0 0, 100% 0, 100% 46%, 0 78%); }
.mix-cover .mix-glyph { position: absolute; right: 6%; bottom: -10%; font: 700 6.2em/1 var(--zh); color: var(--mx-bg); z-index: 1; }
.mix-cover .mix-label { position: absolute; left: 9%; top: 8%; z-index: 2; font: 800 1.2em/0.95 var(--display); letter-spacing: -0.02em; color: var(--mx-fg); max-width: 70%; }
.mix-cover.sm { font-size: 7px; border-radius: 4px; }
.mix-cover.xs { font-size: 6px; border-radius: 4px; }
.mix-cover.sm .mix-label, .mix-cover.xs .mix-label { display: none; }

/* lyrics */
.lyrics { position: relative; overflow-y: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 80%, transparent); }
.lyrics::-webkit-scrollbar { display: none; }
.ly-pad { height: 30%; }
.lyrics:not(.started) .ly { opacity: .78; }
.ly { position: relative; display: block; width: 100%; padding: 12px 0 14px 22px; text-align: left; opacity: .34; transition: opacity .35s, transform .35s; transform-origin: 0 50%; }
.ly::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 18px; width: 4px; border-radius: 4px; background: var(--green); transform: scaleY(0); transition: transform .3s; }
.ly:hover { opacity: .7; }
.ly.past { opacity: .5; }
.ly.on { opacity: 1; }
.ly.on::before { transform: scaleY(1); }
.ly-who { display: block; margin-bottom: 4px; font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ly[data-who="B"] .ly-who { color: #9fe8bb; }
.ly-py { display: block; font: 500 15px/1.4 var(--body); color: var(--muted); margin-bottom: 2px; }
.ly-t { display: block; font: 700 32px/1.22 var(--display); letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.ly-t:lang(zh-Hans) { font: 700 32px/1.35 var(--zh); letter-spacing: .02em; }
.ly-tr { display: block; margin-top: 4px; font: 500 18px/1.4 var(--body); color: var(--muted); }
.ly.on .ly-tr { color: #e6e6e6; }
.ly.on .w { color: rgba(255, 255, 255, .42); transition: color .12s linear; }
.ly.on .w.said { color: #fff; }
.ly-host .ly-who { color: var(--green); }
.no-py .ly-py { display: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 120px; z-index: 60; max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 10px; background: #fff; color: #111; font: 600 14.5px/1.4 var(--body); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.molby-made { color: var(--muted); }
.molby-made:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
