:root {
  --fp-bg: #050505;
  --fp-ink: #f7f7f4;
  --fp-muted: rgba(247, 247, 244, 0.36);
  --fp-active: #ffffff;
  --fp-tundra: #a7b496;
}

.fp-wheel-player {
  position: fixed;
  inset: 0;
  z-index: 80;
  color: var(--fp-ink);
  font-family: Arial, Helvetica, sans-serif;
  pointer-events: none;
}

.fp-wheel-player * {
  box-sizing: border-box;
}

.fp-wheel-anchor {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 3;
  width: 64px;
  height: 118px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--fp-ink);
  cursor: pointer;
  pointer-events: auto;
  opacity: var(--anchor-opacity, 1);
  transform: translate3d(var(--anchor-x, 0px), -50%, 0) scale(var(--anchor-scale, 1));
}

.fp-wheel-anchor:focus-visible,
.fp-wheel-panel:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.74);
  outline-offset: 8px;
}

.fp-wheel-arrow {
  position: relative;
  width: 26px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.fp-wheel-arrow::before,
.fp-wheel-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: 10px 50%;
}

.fp-wheel-arrow::before {
  transform: translateY(-50%) rotate(38deg);
}

.fp-wheel-arrow::after {
  transform: translateY(-50%) rotate(-38deg);
}

.fp-wheel-panel {
  position: fixed;
  left: 48px;
  top: 50%;
  width: min(420px, calc(100vw - 96px));
  height: min(72dvh, 680px);
  min-height: 420px;
  pointer-events: auto;
  opacity: var(--wheel-opacity, 0);
  transform: translate3d(var(--wheel-x, -28px), -50%, 0);
  touch-action: none;
  user-select: none;
}

.fp-wheel-player.is-collapsed .fp-wheel-panel {
  pointer-events: none;
}

.fp-song-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  --ow-font-size: 3rem;
  --ow-inset: 80px;
  --ow-text-color: rgba(247, 247, 244, 0.36);
  --ow-active-color: #ffffff;
}

.fp-song {
  position: absolute;
  left: var(--ow-inset);
  top: 50%;
  min-width: 250px;
  max-width: min(380px, calc(100vw - 112px));
  display: grid;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--fp-muted);
  text-align: left;
  cursor: pointer;
  opacity: var(--op, 1);
  filter: blur(var(--blur, 0px));
  transform:
    translate(var(--x, 0px), calc(var(--y, 0px) - 50%))
    rotate(var(--rot, 0deg))
    scale(var(--scale, 1));
  transform-origin: left center;
  will-change: transform, opacity, filter;
}

.fp-song-title,
.fp-song-artist {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform-origin: left center;
  transition:
    color 260ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    text-shadow 260ms ease;
}

.fp-song-title {
  color: color-mix(in srgb, var(--ow-active-color) calc(var(--p, 0) * 100%), var(--ow-text-color));
  font-size: var(--ow-font-size);
  line-height: 1;
  font-weight: 200;
  letter-spacing: 0;
  text-shadow:
    0 0 calc(18px * var(--p, 0)) rgba(255, 255, 255, 0.16),
    0 0 calc(24px * var(--pop, 0)) rgba(167, 180, 150, 0.24);
}

.fp-song-artist {
  color: color-mix(in srgb, rgba(255, 255, 255, 0.72) calc(var(--p, 0) * 100%), rgba(255, 255, 255, 0.2));
  font-size: clamp(0.72rem, 1.5vh, 0.94rem);
  line-height: 1;
  font-weight: 500;
}

.fp-song.is-active .fp-song-title {
  font-weight: 500;
}

.fp-song.is-playing .fp-song-title::after {
  content: "";
  width: 0.14em;
  height: 0.14em;
  display: inline-block;
  margin-left: 0.28em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.24em;
}

.fp-song.is-playing .fp-song-title {
  color: color-mix(in srgb, var(--fp-tundra) 88%, var(--ow-active-color));
  transform: translateX(18px) scale(1.035);
}

.fp-song.is-playing .fp-song-artist {
  color: color-mix(in srgb, var(--fp-tundra) 72%, rgba(255, 255, 255, 0.42));
  transform: translateX(18px) scale(1.02);
}

.fp-wheel-player.is-right .fp-wheel-anchor {
  left: auto;
  right: 0;
}

.fp-wheel-player.is-right .fp-wheel-arrow::before,
.fp-wheel-player.is-right .fp-wheel-arrow::after {
  left: 0;
  right: auto;
  transform-origin: 1px 50%;
}

.fp-wheel-player.is-right .fp-wheel-panel {
  left: auto;
  right: 48px;
}

.fp-wheel-player.is-right .fp-song {
  left: auto;
  right: var(--ow-inset);
  text-align: right;
  transform-origin: right center;
}

.fp-wheel-player.is-right .fp-song-title,
.fp-wheel-player.is-right .fp-song-artist {
  transform-origin: right center;
}

.fp-wheel-player.is-right .fp-song.is-playing .fp-song-title {
  transform: translateX(-18px) scale(1.035);
}

.fp-wheel-player.is-right .fp-song.is-playing .fp-song-artist {
  transform: translateX(-18px) scale(1.02);
}

@media (max-width: 640px) {
  .fp-wheel-panel {
    left: 34px;
    width: min(340px, calc(100vw - 76px));
    height: min(66dvh, 620px);
    min-height: 360px;
  }

  .fp-wheel-player.is-right .fp-wheel-panel {
    right: 34px;
  }

  .fp-song {
    min-width: 180px;
  }

  .fp-song-wheel {
    --ow-font-size: 2.35rem;
    --ow-inset: 48px;
  }
}


@media (max-width: 768px) {
  .fp-wheel-player {
    display: none !important;
  }
}
