:root {
  --bg: #07060c;
  --glass: rgba(13, 10, 22, 0.46);
  --glass-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f6f1fb;
  --muted: rgba(234, 226, 246, 0.6);
  --faint: rgba(234, 226, 246, 0.38);
  --accent: #ffb6d5;
  --accent-2: #bba8ff;
  --accent-rgb: 255, 182, 213;
  --online: #3ba55d;
  --idle: #f0b232;
  --dnd: #ed4245;
  --offline: #80848e;
  --radius: 26px;
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 0%;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  background: transparent;
}

body {
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body.locked {
  overflow: hidden;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
.gate:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

svg.fill,
svg .fill-s {
  fill: currentColor;
  stroke: none;
}

svg .fill-s {
  stroke: currentColor;
  stroke-width: 1.4;
}

.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  transform: scale(1.04);
  filter: saturate(1.08) brightness(0.92);
  will-change: transform;
}

.pulse {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(130% 95% at 50% 50%, transparent 45%, rgba(255, 150, 200, 0.2) 80%, rgba(187, 168, 255, 0.3) 100%);
  opacity: 0;
  will-change: opacity;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ambient span {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  opacity: 0.5;
  will-change: transform;
}

.ambient span:first-child {
  left: -25vmax;
  top: -30vmax;
  background: radial-gradient(circle, rgba(255, 150, 200, 0.22), rgba(255, 150, 200, 0.06) 40%, transparent 68%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.ambient span:last-child {
  right: -28vmax;
  bottom: -32vmax;
  background: radial-gradient(circle, rgba(160, 140, 255, 0.24), rgba(160, 140, 255, 0.06) 40%, transparent 68%);
  animation: drift-b 31s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to { transform: translate(18vmax, 14vmax) scale(1.15); }
}

@keyframes drift-b {
  to { transform: translate(-16vmax, -12vmax) scale(1.1); }
}

::selection {
  background: rgba(var(--accent-rgb), 0.35);
  color: #fff;
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

html.cc,
html.cc * {
  cursor: none !important;
}

.c-dot,
.c-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 91;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}

html.c-in .c-dot,
html.c-in .c-ring {
  opacity: 1;
}

.c-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff;
  box-shadow: 0 0 8px 1px rgba(var(--accent-rgb), 0.95), 0 0 20px 5px rgba(187, 168, 255, 0.4);
  transition: opacity 0.3s ease, scale 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.c-dot.hover {
  scale: 0.6;
}

.c-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.07), transparent 70%);
  transition:
    opacity 0.3s ease,
    width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    margin 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease,
    background-color 0.3s ease,
    scale 0.18s ease;
}

.c-ring::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 52%, rgba(var(--accent-rgb), 0.95) 78%, #fff 84%, rgba(187, 168, 255, 0.9) 88%, transparent 92%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  opacity: 0;
  animation: spin 1.3s linear infinite;
  transition: opacity 0.3s ease;
}

.c-ring.hover {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-color: rgba(var(--accent-rgb), 0.18);
  background-color: rgba(var(--accent-rgb), 0.08);
}

.c-ring.hover::before {
  opacity: 1;
}

.c-ring.big {
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
}

.c-ring.down {
  scale: 0.78;
}

.trail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  pointer-events: none;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  cursor: pointer;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(var(--accent-rgb), 0.08), transparent 70%),
    rgba(6, 5, 11, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: opacity 0.95s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.95s;
  outline: none;
  will-change: opacity;
}

.gate.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-inner {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
  padding: 24px 16px;
  max-width: 100%;
}

.gate-title {
  margin: 0;
  font-family: "Unbounded", "Outfit", sans-serif;
  font-size: clamp(34px, 10.5vw, 112px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  user-select: none;
  filter: drop-shadow(0 0 24px rgba(var(--accent-rgb), 0.35)) drop-shadow(0 8px 34px rgba(187, 168, 255, 0.22));
  transition: opacity 0.4s ease;
}

.gate-title .ch {
  display: inline-block;
  margin: 0 0.015em;
  background: linear-gradient(180deg, #ffffff 10%, #ffd3e6 55%, #c3b2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: ch-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s) both;
}

@keyframes ch-in {
  from { opacity: 0; transform: translateY(0.3em); filter: blur(12px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.gate-title.fading {
  opacity: 0;
}

.gate-hint {
  position: relative;
  font-size: clamp(11px, 1.6vw, 13px);
  font-weight: 500;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  text-transform: uppercase;
  color: rgba(246, 241, 251, 0.7);
  opacity: 0;
  animation: hint-in 1s ease 1.1s forwards, breathe 2.8s ease-in-out 2.1s infinite;
  transition: opacity 0.4s ease, filter 0.4s ease, letter-spacing 0.6s ease;
}

.gate-hint::before,
.gate-hint::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.7));
}

.gate-hint::before {
  right: calc(100% + 14px);
}

.gate-hint::after {
  left: calc(100% + 6px);
  transform: scaleX(-1);
}

.gate.leaving .gate-hint {
  animation: none;
  opacity: 0;
  filter: blur(6px);
  letter-spacing: 0.9em;
}

@keyframes hint-in {
  to { opacity: 0.7; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}

.gate.leaving .gate-title .ch {
  animation: none;
  opacity: 1;
}

.dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 55;
  pointer-events: none;
}

.flash {
  position: fixed;
  inset: 0;
  z-index: 56;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(closest-side at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 214, 233, 0.6) 30%, rgba(187, 168, 255, 0.22) 62%, transparent 100%);
  will-change: opacity, transform;
}

.flash.go {
  animation: flash 1s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}

@keyframes flash {
  0% { opacity: 0; transform: scale(0.5); }
  22% { opacity: 0.9; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.6); }
}

.app {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: max(28px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}

.card-shell {
  width: min(100%, 500px);
}

.card-shell > .card {
  opacity: 0;
  translate: 0 28px;
  scale: 0.94;
}

.app.ready .card-shell > .card {
  animation: card-in 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes card-in {
  from { opacity: 0; translate: 0 28px; scale: 0.94; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.app.ready .reveal {
  opacity: 1;
  transform: none;
}

.app.ready .r1 { transition-delay: 0.25s; }
.app.ready .r2 { transition-delay: 0.37s; }
.app.ready .r3 { transition-delay: 0.49s; }
.app.ready .r4 { transition-delay: 0.61s; }
.app.ready .r5 { transition-delay: 0.85s; }

.card {
  position: relative;
  width: 100%;
  padding: 30px 28px 24px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 40px 90px -30px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.35s ease-out;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(var(--accent-rgb), 0.45), rgba(255, 255, 255, 0.04) 35%, rgba(255, 255, 255, 0.02) 65%, rgba(187, 168, 255, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: -1;
}

.card-edge {
  position: absolute;
  inset: -1px;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.card-edge::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0deg 230deg, rgba(var(--accent-rgb), 0.15) 270deg, rgba(var(--accent-rgb), 0.95) 322deg, #fff 336deg, rgba(187, 168, 255, 0.9) 346deg, transparent 360deg);
  animation: spin 7s linear infinite;
}

.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.07), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

.card-top {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.chip svg {
  width: 15px;
  height: 15px;
}

.identity {
  display: grid;
  justify-items: center;
  text-align: center;
}

.avatar-wrap {
  --bass: 0;
  --kick: 0;
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 16px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 4px rgba(10, 8, 18, 0.55),
    0 0 calc(22px + var(--bass) * 40px) calc(var(--kick) * 8px) rgba(var(--accent-rgb), calc(0.22 + var(--bass) * 0.45));
  transform: scale(calc(1 + var(--bass) * 0.025 + var(--kick) * 0.04));
}

.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), #7fd4ff, var(--accent));
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 2px), #000 calc(50% - 1px));
  mask: radial-gradient(circle, transparent calc(50% - 2px), #000 calc(50% - 1px));
  opacity: calc(0.35 + var(--bass) * 0.65);
  animation: spin 6s linear infinite;
}

.deco {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.deco[hidden] {
  display: none;
}

.dot {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 5px solid #120f1c;
  background: var(--offline);
  transition: background-color 0.3s ease;
}

.dot.online { background: var(--online); }
.dot.idle { background: var(--idle); }
.dot.dnd { background: var(--dnd); }

.dot.online::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--online);
  opacity: 0;
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.name {
  margin: 0;
  font-size: clamp(26px, 6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  background: linear-gradient(100deg, #ffffff 0%, #ffd6e8 25%, #cbbcff 50%, #ffd6e8 75%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(var(--accent-rgb), 0.35));
  animation: shimmer 7s linear infinite;
  overflow-wrap: anywhere;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.clan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.clan[hidden] {
  display: none;
}

.clan img {
  width: 14px;
  height: 14px;
}

.username {
  margin: 6px 0 0;
  max-width: 100%;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.typer {
  margin: 14px 0 0;
  min-height: 22px;
  font-size: 15px;
  font-weight: 400;
  color: rgba(246, 241, 251, 0.86);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.typer img {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 6px;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--accent);
  border-radius: 2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  height: 26px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--offline);
}

.status.online i { background: var(--online); box-shadow: 0 0 10px var(--online); }
.status.idle i { background: var(--idle); box-shadow: 0 0 10px var(--idle); }
.status.dnd i { background: var(--dnd); box-shadow: 0 0 10px var(--dnd); }

.presence {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.act {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.act:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.065);
  border-color: var(--line-2);
}

.act-art {
  position: relative;
  width: 64px;
  height: 64px;
}

.act-art .big {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.act-art .small {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #17131f;
  background: #17131f;
  object-fit: cover;
}

.act-art .ph {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(var(--accent-rgb), 0.18), rgba(187, 168, 255, 0.14));
  color: var(--accent);
}

.act-art .ph svg {
  width: 26px;
  height: 26px;
}

.act-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.act-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.act.spotify .act-label {
  color: #1ed760;
}

.act-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.act-line {
  font-size: 13px;
  color: var(--muted);
}

.act-name,
.act-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.act-time {
  margin-top: 2px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.sp-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.sp-track {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.sp-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #1ed760;
  transition: width 1s linear;
}

.act.empty {
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 12px 14px;
}

.act.empty .act-art,
.act.empty .act-art .ph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.act.empty .act-art .ph svg {
  width: 20px;
  height: 20px;
}

.player {
  position: relative;
  margin-top: 14px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.player-main {
  position: relative;
}

.viz {
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.45));
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 14px;
  pointer-events: none;
}

.player-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.disc {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #120f1c 0 16%, transparent 17%),
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px),
    conic-gradient(from 0deg, var(--accent), var(--accent-2), #7fd4ff, var(--accent));
  box-shadow: 0 6px 20px -6px rgba(var(--accent-rgb), 0.55);
  animation: spin 4.5s linear infinite;
  animation-play-state: paused;
}

.disc span {
  position: absolute;
  inset: 40%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.player.playing .disc {
  animation-play-state: running;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.track {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.track-title {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.track-sub > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-sub em {
  flex: none;
  font-style: normal;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  border-radius: 6px;
  color: #120f1c;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.icon-btn:active {
  transform: scale(0.92);
}

.icon-btn[aria-pressed="true"],
.icon-btn[aria-expanded="true"] {
  color: var(--accent);
}

.seek {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  margin: 8px 0 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.seek span:last-child {
  text-align: right;
}

.range {
  --p: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)) 0 / var(--p) 100% no-repeat, rgba(255, 255, 255, 0.13);
}

.range::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.13);
}

.range::-moz-range-progress {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18);
  transform: scale(0.85);
  transition: transform 0.15s ease;
}

.range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18);
}

.range:hover::-webkit-slider-thumb,
.range:active::-webkit-slider-thumb {
  transform: scale(1.1);
}

.controls {
  display: grid;
  grid-template-columns: auto auto auto auto 1fr;
  align-items: center;
  gap: 6px;
}

.play {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 4px;
  border-radius: 50%;
  color: #120f1c;
  background: #fff;
  box-shadow: 0 8px 24px -8px rgba(255, 255, 255, 0.55);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.play:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 30px -8px rgba(var(--accent-rgb), 0.8);
}

.play:active {
  transform: scale(0.95);
}

.play svg {
  width: 20px;
  height: 20px;
}

.play .i-pause,
.player.playing .play .i-play {
  display: none;
}

.player.playing .play .i-pause {
  display: block;
}

.volume {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.volume .vol {
  width: min(96px, 100%);
}

.v-x {
  display: none;
}

.muted .v-wave {
  display: none;
}

.muted .v-x {
  display: block;
}

.playlist {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  max-height: 228px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.playlist[hidden] {
  display: none;
}

.playlist ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.pl-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  transition: background-color 0.15s ease;
}

.pl-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pl-item.active {
  background: rgba(var(--accent-rgb), 0.12);
}

.pl-n,
.pl-d {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.pl-item.active .pl-n {
  color: var(--accent);
}

.pl-t {
  display: grid;
  min-width: 0;
}

.pl-t strong,
.pl-t span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-t strong {
  font-size: 13.5px;
  font-weight: 500;
}

.pl-t span {
  font-size: 11.5px;
  color: var(--faint);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.pill:not(.like) {
  position: relative;
  overflow: hidden;
}

.pill:not(.like)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
}

.pill:not(.like):hover::after {
  transform: translateX(260%) skewX(-12deg);
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-2);
}

.pill:active {
  transform: scale(0.97);
}

.like {
  position: relative;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.like svg {
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), fill 0.2s ease, color 0.2s ease;
}

.like[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.14);
}

.like[aria-pressed="true"] svg {
  fill: #ff7eb6;
  color: #ff7eb6;
}

.like.pop svg {
  transform: scale(1.35);
}

.burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  animation: burst 0.7s ease-out forwards;
}

@keyframes burst {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; }
}

.credit {
  margin: 0;
  font-size: 12.5px;
  color: var(--faint);
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.credit button {
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.credit button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 60;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(20, 16, 30, 0.88);
  border: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 480px) {
  .card {
    padding: 26px 18px 18px;
    --radius: 22px;
  }

  .card-top {
    top: 12px;
    right: 12px;
  }

  .avatar-wrap {
    width: 100px;
    height: 100px;
  }

  .volume .vol {
    display: none;
  }

  .pill {
    padding: 0 10px;
    font-size: 13px;
  }

  .pill span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 360px) {
  #copy-user span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
