/* YukiMusic feature pack 2026-11-10 — sheets, recap, journey, game, lyrics card, player add-ons */

/* ---------- sheets ---------- */
.x-back {
  position: fixed; inset: 0; z-index: 4000; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .22s ease-out;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.x-back.on { opacity: 1; }
.x-sheet {
  position: relative; width: min(520px, 100%); max-height: 88vh; overflow: auto; padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0; background: var(--bg-surface, #111318); box-shadow: var(--rim, none);
  color: var(--text-primary); font-family: var(--font-main);
  transform: translateY(24px); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}
.x-back.on .x-sheet { transform: none; }
.x-back:has(.x-center) { align-items: center; padding: 16px; }
.x-sheet.x-center { border-radius: 28px; text-align: center; }
.x-sheet.x-full { width: 100%; max-width: 640px; height: 100%; max-height: none; border-radius: 0; padding: calc(20px + env(safe-area-inset-top)) 20px 32px; }
@media (min-width: 700px) { .x-sheet.x-full { height: min(860px, 94vh); border-radius: 28px; } .x-back:has(.x-full) { align-items: center; } }
.x-sheet.x-dark { background: #07080b; color: #fff; }
.x-x {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 0; color: inherit; background: rgba(127, 127, 127, .18); cursor: pointer;
}
.x-h { margin: 6px 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.x-h2 { margin: 8px 0 4px; font-family: var(--font-display); font-size: 32px; letter-spacing: -.02em; }
.x-sub { margin: 0 0 14px; color: var(--text-secondary); font-size: 14px; line-height: 1.45; }
.x-muted { color: var(--text-muted); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.x-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.x-row .pill-btn { height: 44px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; }
.x-row .pill-btn.big { height: 54px; padding: 0 30px; font-size: 17px; }
.pill-btn.danger { color: #ff6b81; }
.x-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; justify-content: center; }
.x-input {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; border: 0; outline: none; box-sizing: border-box;
  background: rgba(127, 127, 127, .14); color: inherit; font: 500 15px var(--font-main);
}
.x-input:focus { box-shadow: 0 0 0 2px var(--accent); }
.x-sh-head { display: flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 12px; }
.x-sh-head img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.x-sh-head span { display: flex; flex-direction: column; min-width: 0; }
.x-sh-head b, .x-sh-head small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-sh-head small { color: var(--text-secondary); }
.x-spin { width: 34px; height: 34px; margin: 40px auto; border-radius: 50%; border: 3px solid rgba(127, 127, 127, .25); border-top-color: var(--accent); animation: xspin .8s linear infinite; }
.x-spin.sm { width: 18px; height: 18px; margin: 0; border-width: 2px; }
@keyframes xspin { to { transform: rotate(360deg); } }

/* lists (hidden songs, versions) */
.x-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.x-list li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; }
.x-list li img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.x-list li img.wide { width: 74px; height: 42px; }
.x-list li > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.x-list li b { font-size: 14px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-list li small { color: var(--text-secondary); font-size: 12.5px; }
.x-list li small em { color: var(--accent); font-style: normal; }
.x-list li .pill-btn { height: 34px; padding: 0 14px; flex-shrink: 0; }
.x-vers li[data-id] { cursor: pointer; }
.x-vers li[data-id]:hover { background: rgba(127, 127, 127, .1); }
.x-vers li.on { background: var(--accent-surface); }
.x-cur { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 13px; font-weight: 700; flex-shrink: 0; }

/* ---------- milestone ---------- */
.x-ms { position: relative; padding: 8px 4px 0; overflow: hidden; }
.x-ms-cover { width: 120px; height: 120px; border-radius: 22px; object-fit: cover; box-shadow: 0 18px 40px rgba(0, 0, 0, .4); animation: xpop .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.x-ms-kicker { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.x-ms-num { font-family: var(--font-display); font-size: 96px; line-height: .95; letter-spacing: -.04em; margin-top: 4px; animation: xpop .6s .1s cubic-bezier(.2, .9, .3, 1.2) both; }
.x-ms-title { font-weight: 800; font-size: 18px; }
.x-ms-text { color: var(--text-secondary); margin: 8px 0 0; }
.x-ms-burst { position: absolute; left: 50%; top: 68px; width: 0; height: 0; pointer-events: none; }
.x-ms-burst i { position: absolute; width: 6px; height: 14px; border-radius: 3px; background: var(--accent); opacity: 0;
  transform: rotate(var(--a)) translateY(0); animation: xburst .9s var(--d) ease-out forwards; }
.x-ms-burst i:nth-child(3n) { background: #f472b6; } .x-ms-burst i:nth-child(3n+1) { background: #fbbf24; }
@keyframes xburst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-20px); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-120px); } }
@keyframes xpop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

/* ---------- recap stories ---------- */
.x-recap { position: relative; height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.x-recap.loading { justify-content: center; }
.x-rc-bars { display: flex; gap: 5px; padding: 4px 60px 12px 0; }
.x-rc-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.x-rc-bars i b { display: block; height: 100%; width: 0; background: #fff; transition: width .35s ease-out; }
.x-rc-bars i.done b { width: 100%; }
.x-rc-track { flex: 1; display: flex; transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.x-rc-s { flex: 0 0 100%; box-sizing: border-box; padding: 18px 4px 60px; display: flex; flex-direction: column; overflow-y: auto; }
.x-rc-s > small { color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.x-rc-s h2 { font-family: var(--font-display); font-size: 40px; margin: 6px 0 0; letter-spacing: -.02em; }
.x-rc-big { font-family: var(--font-display); font-size: clamp(76px, 24vw, 128px); line-height: 1; letter-spacing: -.05em; margin-top: 18vh; }
.x-rc-s > b { font-size: 20px; }
.x-rc-delta { margin: 10px 0 0; font-weight: 700; } .x-rc-delta.up { color: var(--accent); } .x-rc-delta.down { color: #fca5a5; }
.x-rc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.x-rc-chips span { padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .09); font-weight: 700; font-size: 14px; }
.x-rc-cover { width: min(68vw, 300px); aspect-ratio: 1; border-radius: 22px; object-fit: cover; margin: 22px auto 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.x-rc-s h3 { margin: 0; font-size: 28px; font-weight: 800; text-align: center; letter-spacing: -.02em; }
.x-rc-s h3 + p { margin: 4px 0 18px; text-align: center; color: rgba(255, 255, 255, .65); }
.x-rc-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.x-rc-list li { display: flex; align-items: center; gap: 12px; }
.x-rc-list li img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.x-rc-list li span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.x-rc-list li b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-rc-list li small { color: rgba(255, 255, 255, .55); }
.x-rc-list li em { font-style: normal; font-weight: 800; color: rgba(255, 255, 255, .55); }
.x-rc-list.big { margin-top: 26px; gap: 16px; }
.x-rc-list.big li i { width: 28px; font-style: normal; font-family: var(--font-display); font-size: 26px; color: rgba(255, 255, 255, .4); }
.x-rc-list.big li img { width: 64px; height: 64px; border-radius: 50%; }
.x-rc-list.big li b { font-size: 19px; }
.x-rc-fact { display: flex; gap: 16px; align-items: center; padding: 18px; margin-top: 14px; border-radius: 22px; background: rgba(255, 255, 255, .06); }
.x-rc-fact img, .x-rc-ico { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--accent); }
.x-rc-fact span { display: flex; flex-direction: column; min-width: 0; }
.x-rc-fact small { color: rgba(255, 255, 255, .55); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.x-rc-fact b { font-size: 20px; margin: 2px 0; }
.x-rc-fact em { font-style: normal; color: rgba(255, 255, 255, .65); font-size: 14px; }
.x-rc-card { margin: 16px auto 0; width: min(100%, 42vh); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .05); display: grid; place-items: center; }
.x-rc-card img { width: 100%; height: 100%; display: block; }
.x-rc-nav { position: absolute; top: 60px; bottom: 120px; width: 30%; border: 0; background: none; cursor: pointer; z-index: 2; }
.x-rc-nav.prev { left: 0; } .x-rc-nav.next { right: 0; }
.x-rc-pick { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; color: rgba(255, 255, 255, .6); font-size: 14px; position: relative; z-index: 3; }
.x-rc-pick select { height: 38px; padding: 0 12px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font: 600 14px var(--font-main); }
.x-rc-empty { margin: auto; text-align: center; } .x-rc-empty b { font-family: var(--font-display); font-size: 32px; }

/* ---------- profile: mood, obsession, links ---------- */
#xProfile { margin-top: 18px; }
.x-mood, .x-obs {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; margin-top: 10px; box-sizing: border-box; text-align: left;
  border: 0; border-radius: 18px; background: var(--surface-1, rgba(255, 255, 255, .05)); box-shadow: var(--rim, none); color: inherit; font-family: var(--font-main);
}
.x-mood.empty { cursor: pointer; }
.x-mood img, .x-obs img, .x-mood-ico { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.x-mood-ico { display: grid; place-items: center; background: var(--accent-surface); color: var(--accent); }
.x-mood > span, .x-obs > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.x-mood small, .x-obs small { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; }
.x-obs small { color: #fb923c; }
.x-mood b, .x-obs b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-mood em, .x-obs em { font-style: normal; color: var(--text-secondary); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-links .settings-link { margin-top: 10px; }
.x-links .settings-link > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.x-links .settings-link small { color: var(--text-secondary); font-size: 12.5px; }

/* ---------- home: check-in, teaser, sections ---------- */
#xHome .section-title.x-st { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#xHome .section-title.x-st .pill-btn { height: 34px; padding: 0 14px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.x-checkin { display: flex; gap: 14px; padding: 16px; margin: 4px 0 18px; border-radius: 22px; background: color-mix(in srgb, #fbbf24 9%, var(--bg-surface)); box-shadow: var(--rim, none); }
.x-ck-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: #fbbf24; background: rgba(251, 191, 36, .14); }
.x-checkin b { font-size: 16px; }
.x-checkin p { margin: 4px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 1.45; }
.x-checkin .x-row { justify-content: flex-start; margin-top: 12px; }
.x-checkin .x-row .pill-btn { height: 38px; padding: 0 14px; font-size: 13.5px; }
.x-checkin small { display: block; margin-top: 10px; color: var(--text-muted); font-size: 12px; }
.x-checkin a { color: var(--text-secondary); }
.x-teaser {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; margin: 0 0 18px; border: 0; border-radius: 20px; cursor: pointer; text-align: left;
  color: #fff; font: 700 15px var(--font-main); background: linear-gradient(120deg, #db2777, #7c3aed 60%, #2563eb);
}
.x-teaser b { flex: 1; }

/* ---------- journey ---------- */
.x-jr { padding-top: 8px; }
.x-jr-line { list-style: none; margin: 18px 0 0; padding: 0 0 0 22px; position: relative; }
.x-jr-line::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: linear-gradient(var(--accent), rgba(127, 127, 127, .2)); }
.x-jr-month { margin: 18px 0 8px -22px; padding-left: 22px; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.x-jr-month:first-child { margin-top: 0; }
.x-jr-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0; animation: xin .4s calc(var(--i) * 40ms) ease-out both; }
.x-jr-dot { position: absolute; left: -21px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-surface); box-shadow: 0 0 0 2px var(--accent); }
.x-jr-item img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.x-jr-item > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.x-jr-item b { font-size: 16px; }
.x-jr-item small { color: var(--text-secondary); font-size: 13px; }
.x-jr-item small a { color: var(--text-primary); text-decoration: underline; text-decoration-color: rgba(127, 127, 127, .4); cursor: pointer; }
.x-jr-item em { font-style: normal; color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }
@keyframes xin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- why this song ---------- */
.track-why { display: flex; align-items: center; gap: 5px; margin-top: 2px; color: var(--accent); font-size: 11.5px; font-weight: 600; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-why svg { flex-shrink: 0; }
.x-why-btn { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; margin-left: 2px; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: inherit; font: inherit; font-weight: 700; letter-spacing: inherit; text-transform: inherit; }
.x-why-ico, .x-tg-ico { width: 56px; height: 56px; margin: 4px auto 6px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-surface); color: var(--accent); }
.x-why p { font-size: 18px; font-weight: 700; margin: 6px 0 10px; }
.x-why small { color: var(--text-muted); }

/* ---------- player: reactions, loop ---------- */
.player-action.on { color: var(--accent); background: var(--accent-surface); }
.x-emo-pop {
  position: fixed; z-index: 4100; width: 320px; box-sizing: border-box; padding: 10px; border-radius: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px;
  background: rgba(20, 22, 28, .94); box-shadow: 0 18px 50px rgba(0, 0, 0, .5), var(--rim, none); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  animation: xpop .18s ease-out;
}
.x-emo-pop button { width: 46px; height: 46px; border: 0; border-radius: 14px; background: none; font-size: 26px; cursor: pointer; transition: transform .12s; }
.x-emo-pop button:hover, .x-emo-pop button:active { transform: scale(1.25); background: rgba(255, 255, 255, .08); }
.x-emo-pop small { width: 100%; text-align: center; color: rgba(255, 255, 255, .55); font-size: 11.5px; margin-top: 4px; }
.x-float {
  position: absolute; bottom: 38%; z-index: 30; display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 99px; pointer-events: none;
  background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: 700 12.5px var(--font-main);
  animation: xfloat 3.2s ease-out forwards;
}
.x-float span { font-size: 26px; line-height: 1; }
.x-float img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
@keyframes xfloat { 0% { opacity: 0; transform: translateY(20px) scale(.6); } 12% { opacity: 1; transform: translateY(0) scale(1.08); } 20% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-160px); } }
.x-float-mini { position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 3000; transform: translateX(-50%); padding: 8px 14px; border-radius: 99px;
  background: rgba(0, 0, 0, .7); color: #fff; font: 700 14px var(--font-main); animation: xpop .2s ease-out; pointer-events: none; }
.scrubber-container { position: relative; }
.x-marks { position: absolute; left: 0; right: 0; top: -14px; height: 14px; pointer-events: none; }
.x-marks i { position: absolute; transform: translateX(-50%); font-size: 11px; font-style: normal; line-height: 14px; opacity: .85; }
.x-loop { position: absolute; left: 0; right: 0; top: 0; height: 14px; pointer-events: none; }
.x-loop-zone { position: absolute; top: 3px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 0 1px var(--accent); }
.x-loop-h { position: absolute; top: -8px; width: 30px; height: 30px; margin-left: -15px; padding: 0; border: 0; background: none; pointer-events: auto; cursor: ew-resize; touch-action: none; }
.x-loop-h::after { content: ""; position: absolute; left: 12px; top: 4px; width: 6px; height: 22px; border-radius: 3px; background: var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.x-loop-lab { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); font: 700 11.5px var(--font-main); color: var(--accent); white-space: nowrap; }

/* ---------- listen together ---------- */
.x-tg-code { font-family: var(--font-display); font-size: 40px; letter-spacing: .14em; margin: 8px 0 0; }
.x-tg-members { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.x-tg-members > span:not(.x-muted) { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 99px; background: rgba(127, 127, 127, .14); font-size: 13px; }
.x-tg-members img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
#xTgBanner {
  position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 3500; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 0; border-radius: 99px; cursor: pointer; color: #04110f; background: var(--accent); font: 800 13px var(--font-main);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.x-tg-live { width: 8px; height: 8px; border-radius: 50%; background: #04110f; animation: xlive 1.4s ease-in-out infinite; }
@keyframes xlive { 50% { opacity: .3; } }

/* ---------- guess the song ---------- */
.x-gs { height: 100%; display: flex; flex-direction: column; }
.x-gs-intro { margin: auto; text-align: center; max-width: 420px; display: flex; flex-direction: column; align-items: center; }
.x-gs-intro h2 { font-family: var(--font-display); font-size: 36px; margin: 14px 0 6px; letter-spacing: -.02em; }
.x-gs-intro p { color: rgba(255, 255, 255, .65); line-height: 1.5; margin: 0 0 8px; }
.x-gs-logo { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; color: #04110f; background: var(--accent); }
.x-gs-stats { display: flex; gap: 10px; margin: 18px 0 10px; }
.x-gs-stats span { display: flex; flex-direction: column; min-width: 86px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .07); }
.x-gs-stats b { font-family: var(--font-display); font-size: 28px; }
.x-gs-stats small { color: rgba(255, 255, 255, .55); font-size: 12px; }
.x-gs-top { display: flex; justify-content: space-between; padding: 10px 56px 0 4px; color: rgba(255, 255, 255, .6); font-weight: 700; }
.x-gs-top b { color: var(--accent); }
.x-gs-disc { position: relative; width: 190px; height: 190px; margin: 5vh auto 14px; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, .7);
  background: repeating-radial-gradient(circle, #15171c 0 3px, #0d0e12 3px 6px); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.x-gs-disc.spin { animation: xspin 2.4s linear infinite; }
.x-gs-disc img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.x-gs-disc.reveal { animation: xpop .4s ease-out, xspin 6s .4s linear infinite; }
.x-gs-ring { position: absolute; inset: -8px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p, 0) * 1%), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes xgsring { from { --p: 0; } to { --p: 100; } }
.x-gs-hint { text-align: center; font-size: 17px; font-weight: 700; min-height: 26px; margin: 0 0 14px; }
.x-ok { color: var(--accent); } .x-bad { color: #ff6b81; }
.x-gs-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x-gs-opts button {
  min-height: 74px; padding: 12px; border: 0; border-radius: 18px; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: center;
  background: rgba(255, 255, 255, .07); color: #fff; font-family: var(--font-main); transition: transform .12s, background .2s;
}
.x-gs-opts button:active { transform: scale(.97); }
.x-gs-opts button:disabled { cursor: default; }
.x-gs-opts b { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-gs-opts small { color: rgba(255, 255, 255, .55); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-gs-opts button.ok { background: color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: 0 0 0 2px var(--accent); }
.x-gs-opts button.bad { background: rgba(255, 107, 129, .2); box-shadow: 0 0 0 2px #ff6b81; }

/* ---------- lyrics card ---------- */
.x-lyr-btn {
  position: absolute; right: 10px; top: 4px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 99px;
  background: rgba(255, 255, 255, .12); color: #fff; font: 700 12.5px var(--font-main); cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
#playerViewLyrics { position: relative; }
#lyricsContainer.x-sel .lyric-line { cursor: pointer; opacity: .45; transition: opacity .15s, background .15s; border-radius: 10px; }
#lyricsContainer.x-sel .lyric-line.x-picked { opacity: 1; background: rgba(255, 255, 255, .12); box-shadow: inset 3px 0 0 var(--accent); }
#xLyrBar {
  position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 99px;
  background: rgba(10, 11, 14, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; font: 700 13.5px var(--font-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: xpop .2s ease-out;
}
#xLyrBar[hidden] { display: none; }
#xLyrBar span { flex: 1; }
#xLyrBar .pill-btn { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }
.x-lc-sheet { width: min(460px, 100%); }
.x-lc-prev { width: min(100%, 52vh * .8); aspect-ratio: 4 / 5; margin: 0 auto; border-radius: 18px; overflow: hidden; display: grid; place-items: center;
  background: rgba(127, 127, 127, .1); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); transition: opacity .2s; }
.x-lc-prev.busy img { opacity: .5; }
.x-lc-prev img { width: 100%; height: 100%; display: block; transition: opacity .2s; }

@media (prefers-reduced-motion: reduce) {
  .x-back, .x-sheet, .x-rc-track { transition: none; }
  .x-ms-burst, .x-float, .x-jr-item, .x-gs-disc.spin, .x-gs-disc.reveal { animation: none !important; }
}
