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

html {
  color-scheme: dark;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  background: #0e0e10;
  color: #fafafa;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.bg-image::before {
  content: "";
  position: absolute;
  inset: -80px;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(72px) saturate(1.8) brightness(0.3);
  transform: scale(1.25);
}

.bg-image.visible {
  opacity: 1;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.68) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.06) 36%, rgba(0, 0, 0, 0.5));
}

.page-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
  min-height: 100dvh;
  padding: 1rem 1rem 5rem;
}

@media (min-width: 640px) {
  .page-grid {
    padding: 6rem;
  }
}

.main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 680px;
  width: 100%;
}

.relative-block {
  position: relative;
  width: 100%;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.username {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.discord-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.avatar {
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.discord-handle {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.discord-handle:hover {
  color: #fff;
}

.at {
  font-size: 0.6rem;
}

.lyric-section {
  position: absolute;
  right: 0;
  bottom: 20px;
  width: 72%;
  overflow: hidden;
  user-select: none;
  cursor: default;
  opacity: 0;
  transition: opacity 0.5s;
}

.lyric-outer {
  width: 100%;
}

.lyric-mask {
  position: relative;
  width: 100%;
  height: 66px;
  overflow: hidden;
  mask-image: linear-gradient(
    transparent 0%,
    black 30%,
    black 70%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    transparent 0%,
    black 30%,
    black 70%,
    transparent 100%
  );
}

.lyric-ticker {
  position: absolute;
  left: 0;
  right: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.lyric-ticker p {
  height: 22px;
  line-height: 22px;
  text-align: right;
  padding-right: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    opacity 0.4s,
    filter 0.4s,
    font-weight 0.4s,
    color 0.4s;
}

.lyric-ticker p.dim {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  font-size: 0.86rem;
  opacity: 0.5;
  filter: blur(1.1px);
}

.lyric-ticker p.active {
  color: #fff;
  font-weight: 600;
  font-size: 0.84rem;
  opacity: 1;
  filter: blur(0);
}

.meta-section {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  max-width: 53%;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s;
}

@media (min-width: 640px) {
  .meta-section {
    max-width: 72%;
  }
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  width: 100%;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .meta-row {
    gap: 0.375rem;
    font-size: 0.875rem;
  }
}

.album-art {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .album-art {
    width: 1rem;
    height: 1rem;
  }
}

.meta-text {
  color: rgba(255, 255, 255, 0.6);
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listening-to {
  display: none;
}

@media (min-width: 640px) {
  .listening-to {
    display: inline;
  }
}

.shimmer-link {
  background-image: linear-gradient(
    -45deg,
    rgb(20, 60, 85) 0%,
    rgb(255, 255, 255) 15%,
    rgb(255, 255, 255) 35%,
    rgb(36, 80, 111) 50%,
    rgb(255, 255, 255) 65%,
    rgb(255, 255, 255) 85%,
    rgb(20, 60, 85) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.6s linear infinite paused;
  font-weight: 500;
}

.shimmer-link:hover {
  animation-play-state: running;
  text-decoration: underline;
}

.artist-link {
  color: rgba(255, 255, 255, 0.8);
}

.artist-link:hover {
  text-decoration: underline;
}

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

.card {
  position: relative;
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 40px -15px rgba(0, 0, 0, 0.3);
}

.card-top-line {
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.card-text {
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.6);
}

.highlight {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}