@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #5a5a5a;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #9a9a9a;
  --dim: #4a4a4a;
  --line: #1a1a1a;
  --card: #080808;
  --online: #23a55a;
  --idle: #f0b232;
  --dnd: #f23f43;
  --offline: #80848e;
  --accent: #5a5a5a;
  --ease: cubic-bezier(.22, 1, .36, 1);
  transition: --accent 1.6s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }
kbd {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid #262626;
  border-bottom-width: 2px;
  background: #0c0c0c;
  color: #bdbdbd;
}

/* Ambient album-colour glow */
.ambient {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(700px circle at 12% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(900px circle at 100% 110%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
}
body.no-glow .ambient { display: none; }

.page {
  position: relative; z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 50px 24px 40px;
  display: grid;
  grid-template-columns: 250px 1fr;
  column-gap: 64px;
}

/* ── Profile ─────────────────────────────── */
.avatar-wrap { position: relative; width: 134px; height: 134px; }
.avatar-clip { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #111; }
.avatar { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.avatar.loaded { opacity: 1; }
.avatar-deco {
  position: absolute; inset: -10%;
  width: 120%; height: 120%;
  pointer-events: none;
}

.name {
  margin-top: 30px;
  font-size: 40px; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
  word-break: break-word;
}

.status-row { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.status { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; }
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--offline);
  display: grid; place-items: center;
  transition: background .3s;
}
.status-dot svg { width: 7px; height: 7px; color: #000; }
.status-dot.online { background: var(--online); }
.status-dot.idle { background: var(--idle); }
.status-dot.dnd { background: var(--dnd); }

.platforms { display: flex; gap: 6px; color: #6d6d6d; }
.platforms span { width: 12px; height: 12px; }
.platforms svg { width: 12px; height: 12px; }

.note {
  margin-top: 16px;
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 8px 12px;
  font-size: 11.5px; font-weight: 500; line-height: 1.45;
  color: #dcdcdc;
  background: #0c0c0c;
  border: 1px solid #1d1d1d;
  border-radius: 4px 12px 12px 12px;
}

/* ── Spotify ─────────────────────────────── */
.spotify { margin-top: 36px; }
.listening { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; }
.spotify-logo { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; letter-spacing: -0.02em; }
.spotify-logo svg { width: 20px; height: 20px; }
.spotify-logo.dim svg { width: 14px; height: 14px; color: #555; }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-left: auto; }
.eq i {
  width: 2px; height: 100%;
  border-radius: 1px;
  background: color-mix(in srgb, var(--accent) 70%, white);
  transform-origin: bottom;
  animation: eq 1s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: -.35s; animation-duration: .8s; }
.eq i:nth-child(3) { animation-delay: -.6s;  animation-duration: 1.15s; }
.eq i:nth-child(4) { animation-delay: -.15s; animation-duration: .9s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

.track { margin-top: 22px; display: flex; align-items: center; gap: 14px; }
/* Vinyl record: grooves + album label spin together, with a light sheen
   that stays put so the rotation actually reads. */
.disc {
  position: relative;
  width: 66px; height: 66px; flex: none;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #1d1d1d, 0 0 28px -4px color-mix(in srgb, var(--accent) 45%, transparent);
}
.disc-spin {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, #141414 0 1px, #090909 1px 3px);
  display: grid; place-items: center;
  animation: spin 6s linear infinite;
}
/* Hover: the record keeps spinning at the same speed. Only the wrapper
   (which doesn't rotate) grows and glows, so the spin never jumps. */
.disc { transition: transform .45s var(--ease), box-shadow .45s ease; }
.disc:hover {
  transform: scale(1.1);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 45%, #333),
    0 0 42px -2px color-mix(in srgb, var(--accent) 75%, transparent);
}
/* sound-wave rings pulsing out from the record */
.disc::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 60%, white);
  opacity: 0;
  pointer-events: none;
}
.disc:hover::before { animation: ripple 1.3s ease-out infinite; }
@keyframes ripple {
  from { transform: scale(1); opacity: .75; }
  to   { transform: scale(1.5); opacity: 0; }
}
/* Spotify logo that fades in over the label (doesn't rotate) */
.disc-hover {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  color: #fff;
  opacity: 0;
  transform: scale(.5) rotate(-30deg);
  transition: opacity .3s ease, transform .45s var(--ease);
  pointer-events: none;
}
.disc-hover svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 6px rgba(0,0,0,.8)); }
.disc:hover .disc-hover { opacity: 1; transform: none; }
.disc img { transition: filter .35s ease; }
.disc:hover img { filter: brightness(.5) saturate(1.3); }
.disc-spin::after { transition: opacity .3s; }
.disc:hover .disc-spin::after { opacity: 0; }
.disc img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #050505;
}
/* spindle hole */
.disc-spin::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.25);
}
/* fixed glare on top */
.disc::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 10%, rgba(255,255,255,.09) 14%, transparent 20% 60%, rgba(255,255,255,.06) 64%, transparent 70%);
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.track-meta { min-width: 0; }
.track-title, .track-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-title { font-size: 13px; font-weight: 600; }
.track-artist { margin-top: 6px; font-size: 11px; font-weight: 600; color: #cfcfcf; }
.track:hover .track-title { text-decoration: underline; text-underline-offset: 3px; }

.progress-wrap { margin-top: 16px; }
.progress { height: 3px; border-radius: 3px; background: #191919; overflow: hidden; }
.progress-bar {
  height: 100%; width: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--accent) 65%, white);
}
.times {
  margin-top: 6px;
  display: flex; justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; color: #5c5c5c;
}

.lyrics {
  margin-top: 18px;
  width: 100%;
  text-align: left;
  border-left: 1px solid var(--line);
  padding: 4px 0 4px 14px;
  min-height: 76px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .25s;
}
.lyrics:hover, .lyrics:focus-visible { border-left-color: color-mix(in srgb, var(--accent) 70%, white); outline: none; }
.lyric-line { display: block; font-size: 13px; font-weight: 500; line-height: 1.5; min-height: 20px; color: var(--dim); }
/* Karaoke sweep: each word is filled by a soft-edged gradient whose position
   (--p) is driven every frame from JS, so it glides left → right. */
.lyric-line { --fill: #fff; --base: var(--dim); }
.lyric-line .w,
.lv-line.active .w {
  background-image: linear-gradient(90deg, var(--fill) calc(var(--p, -20%) - 18%), var(--base) calc(var(--p, -20%) + 18%));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.lyric-line.fade { animation: lyricIn .35s var(--ease); }
.lyric-line.muted { font-style: italic; font-size: 11px; }
@keyframes lyricIn { from { opacity: 0; transform: translateY(4px); } }
.lyric-foot { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; }
.lyric-credit { font-size: 8px; color: #333; }
.lyric-expand { width: 12px; height: 12px; color: #777; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s var(--ease); }
.lyric-expand svg { width: 12px; height: 12px; }
.lyrics:hover .lyric-expand, .lyrics:focus-visible .lyric-expand { opacity: 1; transform: none; }

.not-listening { margin-top: 36px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* ── Content ─────────────────────────────── */
.content { padding-top: 2px; min-width: 0; }
.heading { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 6px rgba(35,165,90,0); } 100% { box-shadow: 0 0 0 0 rgba(35,165,90,0); } }

.link-groups {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 24px;
}
.link-groups { grid-auto-flow: row dense; align-items: start; }
.link-groups > .tall { grid-row: span 2; }
.link + .server { margin-top: 10px; }
.group-title { font-size: 12px; font-weight: 600; margin-bottom: 6px; color: #e8e8e8; }

/* Link row — hover is a fading surface behind the row, no layout shift. */
.link {
  position: relative;
  isolation: isolate;
  display: flex; align-items: center; gap: 12px;
  width: calc(100% + 20px);
  margin: 0 -10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  user-select: none;
  outline: none;
}
.link::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  opacity: 0;
  transform: scale(.97);
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.link:hover::before, .link:focus-visible::before { opacity: 1; transform: none; }
.link:active::before { transform: scale(.985); }

.link-icon {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  background: #0b0b0b;
  box-shadow: inset 0 0 0 1px #1c1c1c;
  color: #bdbdbd;
  transition: color .25s, background .25s, box-shadow .25s;
}
.link-icon svg { width: 15px; height: 15px; }
.link:hover .link-icon, .link:focus-visible .link-icon { color: #fff; background: #131313; box-shadow: inset 0 0 0 1px #2a2a2a; }

.link-text { flex: 1; min-width: 0; }
.link-label { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-sub { margin-top: 2px; font-size: 10px; font-weight: 600; color: #8f8f8f; transition: color .25s; }
.link:hover .link-sub { color: #bdbdbd; }

/* Arrow slides out top-right while a new one slides in from bottom-left */
.link-action {
  position: relative;
  width: 12px; height: 12px; flex: none;
  overflow: hidden;
  color: #7a7a7a;
  transition: color .25s;
}
.link-action > span { position: absolute; inset: 0; transition: transform .4s var(--ease); }
.link-action svg { width: 12px; height: 12px; }
.link-action > span + span { transform: translate(-110%, 110%); }
.link:hover .link-action, .link:focus-visible .link-action { color: #fff; }
.link:hover .link-action.arrow > span:first-child { transform: translate(110%, -110%); }
.link:hover .link-action.arrow > span + span { transform: none; }
.link-action.copy > span + span { display: none; }
.link:hover .link-action.copy { transform: none; }
.link-action.done { color: var(--online) !important; }

/* ── Live server card ────────────────────── */
.server {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  margin: 2px -10px 0;
  padding: 12px;
  border-radius: 12px;
  background: #080808;
  box-shadow: inset 0 0 0 1px #171717;
  outline: none;
  transition: background .3s, box-shadow .3s;
}
.server:hover, .server:focus-visible { background: #0c0c0c; box-shadow: inset 0 0 0 1px #262626; }
/* light sweep across the card on hover */
.server::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.07) 50%, transparent 65%);
  transform: translateX(-110%);
}
.server:hover::after { transform: translateX(110%); transition: transform .9s var(--ease); }
.server-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  opacity: .2;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
          mask-image: linear-gradient(90deg, transparent, #000);
}

.server-top { display: flex; align-items: center; gap: 12px; }
.server-icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: #151515;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #888;
  transition: border-radius .35s var(--ease);
}
.server:hover .server-icon { border-radius: 30%; }
.server-icon img { width: 100%; height: 100%; object-fit: cover; }
.server-meta { flex: 1; min-width: 0; }
.server-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-stats { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 10px; font-weight: 600; color: #8f8f8f; }
.server-stats span { display: inline-flex; align-items: center; gap: 5px; }
.server-stats b { color: #e6e6e6; font-weight: 700; font-variant-numeric: tabular-nums; }
.sdot { width: 6px; height: 6px; border-radius: 50%; background: #555; }
.sdot.on { background: var(--online); animation: pulse 2s infinite; }

.server-join {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  background: #151515;
  box-shadow: inset 0 0 0 1px #242424;
  transition: background .25s, color .25s, box-shadow .25s;
}
.server-join .link-action { width: 10px; height: 10px; color: inherit; }
.server-join .link-action svg { width: 10px; height: 10px; }
.server:hover .server-join { background: #fff; color: #000; box-shadow: none; }
.server:hover .link-action.arrow > span:first-child { transform: translate(110%, -110%); }
.server:hover .link-action.arrow > span + span { transform: none; }

.server-foot { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.server-avatars { display: flex; align-items: center; }
.server-avatars img { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #080808; margin-left: -6px; background: #151515; }
.server-avatars img:first-child { margin-left: 0; }
.server-avatars span { margin-left: 6px; font-size: 9.5px; font-weight: 600; color: #777; }
.server-bar { flex: 1; height: 3px; border-radius: 3px; background: #191919; overflow: hidden; }
.server-bar > div {
  height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a7a43, var(--online));
  transition: width 1.2s var(--ease);
}

/* ── Footer ──────────────────────────────── */
.footer {
  position: relative; z-index: 1;
  padding: 24px 16px 20px;
  font-size: 10px; font-weight: 500;
  color: #8a8a8a;
  display: flex; justify-content: center; align-items: center; gap: 14px;
}
/* ── "made by sebtro" ── */
@property --h { syntax: "<number>"; inherits: true; initial-value: 0; }
.made {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 500;
  color: #6a6a6a;
  cursor: pointer;
  transition: color .3s, background .3s, box-shadow .3s;
}
.made-name { display: inline-flex; font-weight: 800; letter-spacing: .02em; color: #cfcfcf; }
.made-name i {
  font-style: normal;
  display: inline-block;
  transition: color .3s, text-shadow .3s;
}
.made-spark {
  display: inline-block;
  font-size: 10px;
  color: #444;
  transition: color .3s, transform .6s var(--ease);
}
/* underline that grows out from the centre */
.made::after {
  content: "";
  position: absolute; left: 50%; right: 50%; bottom: 2px;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, hsl(calc(var(--h) + 0) 95% 70%), hsl(calc(var(--h) + 120) 95% 70%), transparent);
  transition: left .45s var(--ease), right .45s var(--ease);
}

.made:hover, .made:focus-visible {
  outline: none;
  color: #9a9a9a;
  background: rgba(255,255,255,.03);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  animation: hue 2.4s linear infinite;
}
.made:hover::after, .made:focus-visible::after { left: 14px; right: 14px; }
.made:hover .made-spark, .made:focus-visible .made-spark {
  color: hsl(var(--h) 95% 72%);
  transform: rotate(180deg) scale(1.25);
}
/* every letter gets its own hue, the whole rainbow flows, and they wave */
.made:hover .made-name i, .made:focus-visible .made-name i {
  color: hsl(calc(var(--h) + var(--i) * 32) 95% 72%);
  text-shadow: 0 0 14px hsl(calc(var(--h) + var(--i) * 32) 95% 60% / .55);
  animation: wave .7s var(--ease) calc(var(--i) * 55ms) both;
}
@keyframes hue { to { --h: 360; } }
@keyframes wave {
  0%   { transform: translateY(0); }
  35%  { transform: translateY(-5px) rotate(-6deg); }
  70%  { transform: translateY(1px); }
  100% { transform: translateY(0); }
}

/* sparks that burst out on hover */
.made-burst {
  position: absolute; left: 50%; top: 50%;
  width: 4px; height: 4px; margin: -2px;
  border-radius: 50%;
  pointer-events: none;
  background: hsl(var(--hue) 95% 70%);
  box-shadow: 0 0 6px hsl(var(--hue) 95% 60%);
  animation: burst .8s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes burst {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to   { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}
.kbd-hint { display: inline-flex; gap: 3px; opacity: .6; transition: opacity .2s; }
.kbd-hint:hover { opacity: 1; }

/* ── Lyrics view ─────────────────────────── */
.lyrics-view {
  position: fixed; inset: 0; z-index: 50;
  background: #000;
  display: flex; flex-direction: column;
  animation: fadeIn .35s var(--ease);
}
.lyrics-view[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lv-bg {
  position: absolute; inset: -10%;
  background-size: cover; background-position: center;
  filter: blur(80px) saturate(1.4) brightness(.45);
  transform: scale(1.1);
  animation: drift 30s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.25) rotate(4deg); } }
.lyrics-view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#000a, #0006 30%, #0006 70%, #000c); pointer-events: none; }
.lv-head, .lv-scroll, .lv-progress { position: relative; z-index: 1; }
.lv-head {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 32px;
  max-width: 900px; width: 100%; margin: 0 auto;
}
.lv-head img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; box-shadow: 0 8px 24px #0008; }
.lv-meta { flex: 1; min-width: 0; }
.lv-title { font-size: 15px; font-weight: 700; }
.lv-artist { margin-top: 3px; font-size: 12px; color: #ffffffaa; font-weight: 500; }
.lv-close {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: #ffffff14;
  transition: background .2s, transform .2s var(--ease);
}
.lv-close:hover { background: #ffffff26; transform: rotate(90deg); }
.lv-close svg { width: 16px; height: 16px; }
.lv-scroll {
  flex: 1; overflow: hidden;
  mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
}
.lv-lines {
  position: relative;
  max-width: 900px; margin: 0 auto;
  padding: 0 32px;
  transition: transform .7s var(--ease);
}
.lv-line {
  padding: 10px 0;
  font-size: clamp(22px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #ffffff38;
  transform-origin: left center;
  transition: color .4s, transform .5s var(--ease), filter .5s;
  filter: blur(1.2px);
}
.lv-line.past { color: #ffffff52; }
.lv-line.active {
  --fill: #fff;
  --base: #ffffff59;
  transform: scale(1.03);
  filter: drop-shadow(0 0 22px #ffffff26);
}
.lv-line.gap { font-size: clamp(18px, 2.4vw, 26px); }
.lv-empty { padding-top: 30vh; text-align: center; font-size: 18px; color: #ffffff80; font-weight: 600; }
.lv-progress { height: 3px; background: #ffffff14; }
.lv-progress .progress-bar { background: #fff; }

/* ── Command palette ─────────────────────── */
.palette {
  position: fixed; inset: 0; z-index: 60;
  background: #000a;
  backdrop-filter: blur(6px);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 14vh 16px 16px;
  animation: fadeIn .2s ease;
}
.palette[hidden] { display: none; }
.palette-box {
  width: 100%; max-width: 520px;
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 14px;
  box-shadow: 0 30px 80px -10px #000, 0 0 0 1px #000;
  overflow: hidden;
  animation: popIn .25s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #1a1a1a; color: #777; }
.palette-input > span svg { width: 16px; height: 16px; }
.palette-input input { flex: 1; background: none; border: 0; outline: none; color: #fff; font: 500 14px "Plus Jakarta Sans", sans-serif; }
.palette-input input::placeholder { color: #555; }
.palette-list { max-height: 340px; overflow-y: auto; padding: 6px; }
.palette-section { padding: 8px 10px 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #555; }
.palette-item {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  text-align: left;
  font-size: 12.5px; font-weight: 600;
}
.palette-item .pi-icon { width: 15px; height: 15px; color: #888; flex: none; }
.palette-item .pi-icon svg { width: 15px; height: 15px; }
.palette-item .pi-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item .pi-hint { font-size: 10px; color: #555; font-weight: 500; }
.palette-item.sel { background: #161616; }
.palette-item.sel .pi-icon { color: #fff; }
.palette-none { padding: 22px; text-align: center; font-size: 12px; color: #555; }

/* ── Toast ───────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 70;
  transform: translate(-50%, 16px);
  background: #111; border: 1px solid #222;
  padding: 9px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Responsive ──────────────────────────── */
@media (max-width: 820px) {
  .page { grid-template-columns: 1fr; padding: 36px 16px; row-gap: 48px; }
  .kbd-hint { display: none; }
}
@media (max-width: 560px) {
  .link-groups { grid-template-columns: 1fr; }
  .lv-head, .lv-lines { padding-left: 20px; padding-right: 20px; }
}
@media (hover: none) {
  .lyric-expand { opacity: 1; transform: none; }
}
