:root {
  color-scheme: dark;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #8a8a8f;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 76px 16px 32px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #050505;
  overflow: hidden;
  cursor: url("/Assets/cursor.png") 25 25, auto;
}

.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.6) grayscale(1);
}

.veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(12, 12, 12, 0.34), rgba(5, 5, 5, 0.84) 58%, #050505 100%);
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(352px, 100%);
}

.card {
  position: relative;
  width: 100%;
  padding: 58px 22px 18px;
  border-radius: 26px;
  text-align: center;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.72), rgba(10, 10, 10, 0.86));
  border: 1px solid var(--line);
  box-shadow:
    0 28px 64px -18px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}

.avatar-wrap {
  position: absolute;
  top: -54px;
  left: 50%;
  transform: translateX(-50%);
  width: 106px;
  height: 106px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(14, 14, 14, 0.95);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover .avatar {
  transform: scale(1.03);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.7);
}

.dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid #101010;
  background: #80848e;
  transition: background 0.25s ease;
}

.dot[data-state="online"],
.dot[data-state="mobile"] {
  background: #23a55a;
}

.dot[data-state="idle"] {
  background: #f0b232;
}

.dot[data-state="dnd"] {
  background: #f23f43;
}

.dot[data-state="offline"] {
  background: #80848e;
}

.name {
  position: relative;
  margin: 0;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  word-break: break-word;
}

.name .real {
  visibility: hidden;
}

.name .fx {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  transform-origin: center;
}

.handle {
  margin: 3px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  min-height: 24px;
}

.clan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e8e8ea;
}

.clan-badge {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
}

.clan[hidden] {
  display: none;
}

.badges {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badges img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #dededf;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  cursor: inherit;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.social img {
  height: 20px;
  width: auto;
  display: block;
  border-radius: 3px;
}

.social:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.views {
  position: absolute;
  top: 13px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 0.71rem;
  color: #6c6c73;
}

.eye {
  width: 13px;
  height: 13px;
  fill: currentColor;
  opacity: 0.85;
}

.orbit {
  display: flex;
  justify-content: center;
  width: 100%;
}

.orbit[hidden] {
  display: none;
}

.act-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 252px;
  padding: 9px 14px 9px 10px;
  border-radius: 14px;
  background: rgba(14, 14, 14, 0.8);
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px -14px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  text-align: left;
}

.act-icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
}

.act-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.act-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ededee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.act-detail {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage.orbiting .orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  display: block;
}

.stage.orbiting .spinner {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  animation: orbit-spin 28s linear infinite;
}

.stage.orbiting .act-card {
  position: absolute;
  left: 0;
  top: 0;
  animation: orbit-hold 28s linear infinite;
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-hold {
  from {
    transform: translateX(var(--r, 280px)) translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translateX(var(--r, 280px)) translate(-50%, -50%) rotate(-360deg);
  }
}

.player {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  width: min(272px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px 10px 10px;
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 42px -18px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.player:hover {
  background: rgba(13, 13, 13, 0.76);
  border-color: rgba(255, 255, 255, 0.16);
}

.play {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: transparent;
  color: #f2f2f3;
  cursor: inherit;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.play:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.42);
  transform: scale(1.06);
}

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

.icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.icon-pause {
  display: none;
}

.player.playing .icon-play {
  display: none;
}

.player.playing .icon-pause {
  display: block;
}

.meta {
  flex: 1;
  min-width: 0;
}

.line {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
  flex: none;
}

.eq i {
  display: block;
  width: 2px;
  height: 3px;
  border-radius: 1px;
  background: #f2f2f3;
  opacity: 0.55;
}

.player.playing .eq i {
  animation: eq 0.9s ease-in-out infinite;
}

.player.playing .eq i:nth-child(2) {
  animation-delay: 0.18s;
}

.player.playing .eq i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes eq {
  0%,
  100% {
    height: 3px;
    opacity: 0.55;
  }
  50% {
    height: 10px;
    opacity: 1;
  }
}

.title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ededee;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist {
  font-size: 0.72rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar {
  position: relative;
  height: 2px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  cursor: inherit;
}

.bar::after {
  content: "";
  position: absolute;
  inset: -8px 0;
}

.fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #f4f4f5;
}

.thumb {
  position: absolute;
  right: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.time {
  flex: none;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

@media (max-width: 360px) {
  .card {
    padding: 54px 16px 14px;
  }

  .name {
    font-size: 1.18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar,
  .play,
  .social {
    transition: none;
  }
}
