body.fs-player-open {
  overflow: hidden;
}

.fs-player {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(8px, 1.5vh, 16px);
  padding: clamp(12px, 2.2vh, 24px) clamp(16px, 4vw, 32px);
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 80% 45% at 50% 18%, rgba(220, 126, 227, 0.22) 0%, transparent 65%),
    linear-gradient(180deg, #F9F8FC 0%, #ECE7F5 60%, #E4D6F1 100%);
  color: var(--site-plum);
  user-select: none;
  opacity: 0;
  transform: translateY(100%) scale(0.985);
  transform-origin: center bottom;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.fs-player.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fs-player .fs-top-bar,
.fs-player .fs-meta,
.fs-player .fs-controls-area,
.fs-player .fs-secondary-actions {
  opacity: 0;
  transform: translateY(16px);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.fs-player .fs-cover-frame {
  opacity: 0;
  transform: translateY(22px) scale(0.9);
  transition:
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.34s ease;
}

.fs-player.is-open .fs-top-bar {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.04s;
}

.fs-player.is-open .fs-cover-frame {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.05s;
}

.fs-player.is-open .fs-meta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.09s;
}

.fs-player.is-open .fs-controls-area {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}

.fs-player.is-open .fs-secondary-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  .mini-player,
  .fs-player,
  .fs-player .fs-top-bar,
  .fs-player .fs-cover-frame,
  .fs-player .fs-meta,
  .fs-player .fs-controls-area,
  .fs-player .fs-secondary-actions,
  .fs-queue-drawer,
  .fs-queue-drawer .fs-drawer-header,
  .fs-queue-drawer .fs-drawer-body {
    transition: none !important;
  }
}

.fs-top-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.fs-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--site-plum);
  cursor: pointer;
  padding: 8px;
  border-radius: 999px;
  position: relative;
  transition: transform 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.fs-icon-btn:hover {
  color: var(--site-orchid-deep);
  background: rgba(220, 126, 227, 0.14);
}

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

.fs-icon-btn.is-active {
  color: var(--site-orchid-deep);
}

.fs-icon-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--site-orchid);
}

.fs-source-label {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.3px;
  color: var(--site-plum-muted);
}

.fs-info-area {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vh, 18px);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.fs-cover-frame {
  width: min(74vw, 37vh, 330px);
  width: min(74vw, 37dvh, 330px);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 18px 42px rgba(109, 71, 112, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(135deg, #DC7EE3 0%, #8E5697 100%);
}

.fs-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}

.fs-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.32s ease;
}

.fs-cover-img.is-fading,
.fs-cover-img.is-hidden {
  opacity: 0;
}

.fs-meta {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.fs-title-viewport {
  width: 100%;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.fs-title-viewport.is-marquee {
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.fs-title-text {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(20px, 3.1vh, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--site-plum);
}

.fs-title-viewport.is-marquee .fs-title-text {
  animation: fsMarquee var(--marquee-duration, 10s) ease-in-out infinite alternate;
}

@keyframes fsMarquee {
  0%,
  15% {
    transform: translateX(0);
  }

  85%,
  100% {
    transform: translateX(var(--marquee-shift, 0px));
  }
}

.fs-artist-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 2px;
  max-width: 100%;
}

.fs-artist-sep {
  color: var(--site-plum-soft);
  font-size: clamp(14px, 2vh, 17px);
  font-weight: 500;
  user-select: none;
  margin-inline-end: 2px;
}

.fs-artist-empty {
  color: var(--site-plum-muted);
  font-size: clamp(14px, 2vh, 17px);
  font-weight: 500;
  padding: 4px 10px;
}

.fs-artist-btn {
  background: transparent;
  border: none;
  color: var(--site-plum-muted);
  font-size: clamp(14px, 2vh, 17px);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease;
}

.fs-artist-btn:hover:not(:disabled) {
  background: rgba(220, 126, 227, 0.14);
  color: var(--site-plum);
}

.fs-artist-btn:disabled {
  cursor: default;
}

.fs-controls-area {
  flex: 0 0 auto;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vh, 14px);
}

.fs-progress-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fs-seek-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 36px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.fs-seek-bar:focus {
  outline: none;
}

.fs-seek-bar::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right,
      var(--site-orchid) var(--seek-progress, 0%),
      rgba(109, 71, 112, 0.18) var(--seek-progress, 0%));
}

.fs-seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--site-orchid);
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(109, 71, 112, 0.35);
  margin-top: -5px;
  transition: transform 0.12s ease;
}

.fs-seek-bar:active::-webkit-slider-thumb {
  transform: scale(1.22);
}

.fs-seek-bar::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(109, 71, 112, 0.18);
}

.fs-seek-bar::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--site-orchid);
}

.fs-seek-bar::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  background: var(--site-orchid);
  box-shadow: 0 2px 8px rgba(109, 71, 112, 0.35);
}

.fs-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--site-plum-muted);
}

.fs-main-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fs-play-btn {
  width: clamp(58px, 8.5vh, 68px);
  height: clamp(58px, 8.5vh, 68px);
  border-radius: 50%;
  border: none;
  background: var(--site-orchid);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--site-orchid-glow);
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.fs-play-btn:hover {
  background: var(--site-orchid-hover);
  transform: scale(1.04);
}

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

.fs-repeat-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  background: var(--site-plum);
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 4px;
}

.fs-secondary-actions {
  flex: 0 0 auto;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.fs-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--site-surface);
  border: 1.5px solid var(--site-border-strong);
  color: var(--site-plum);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(109, 71, 112, 0.08);
  transition: background 0.15s ease, transform 0.14s ease, border-color 0.15s ease, color 0.15s ease;
}

.fs-secondary-btn:hover {
  background: var(--site-surface-white);
  border-color: var(--site-orchid);
  color: var(--site-orchid-deep);
}

.fs-secondary-btn:active {
  transform: scale(0.95);
}

.fs-like-btn {
  background: transparent;
  border: none;
  color: var(--site-plum-muted);
  padding: 8px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease, color 0.15s ease;
}

.fs-like-btn:hover {
  color: var(--site-plum);
  transform: scale(1.08);
}

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

.fs-like-btn.is-liked {
  color: var(--site-heart);
}

.fs-like-btn.is-liked svg {
  animation: heartPop 0.28s ease;
}

@keyframes heartPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.fs-queue-badge {
  background: var(--site-orchid-soft);
  color: var(--site-orchid-deep);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 12px;
}

.fs-toast {
  position: absolute;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--site-plum);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  pointer-events: none;
  z-index: 30;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(109, 71, 112, 0.28);
}

.fs-queue-drawer {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: rgba(249, 248, 252, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--site-plum);
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2.5vh, 24px) clamp(16px, 4vw, 32px);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transform-origin: center bottom;
  pointer-events: none;
  transition:
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.fs-queue-drawer.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fs-queue-drawer .fs-drawer-header,
.fs-queue-drawer .fs-drawer-body {
  opacity: 0;
  transform: translateY(14px);
  transition:
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
}

.fs-queue-drawer.is-open .fs-drawer-header {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.04s;
}

.fs-queue-drawer.is-open .fs-drawer-body {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.fs-drawer-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 12px auto;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--site-border);
}

.fs-drawer-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--site-plum);
}

.fs-drawer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fs-drawer-section-title {
  margin: 0 0 6px 0;
  font-size: 12px;
  color: var(--site-plum-muted);
  font-weight: 700;
}

.fs-queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fs-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--site-surface-white);
  border: 1px solid var(--site-border);
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.fs-queue-item.is-dragging {
  opacity: 0.45;
}

.fs-queue-item.is-drag-over {
  border-color: var(--site-orchid);
  background: var(--site-orchid-soft);
}

.fs-drag-handle {
  cursor: grab;
  touch-action: none;
  color: var(--site-plum-soft);
  padding: 4px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.fs-drag-handle:active {
  cursor: grabbing;
}

.fs-queue-main {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.fs-queue-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #DC7EE3 0%, #8E5697 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
}

.fs-queue-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fs-queue-song-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--site-plum);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-queue-song-artist {
  font-size: 12px;
  color: var(--site-plum-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-drawer-mini-btn {
  background: var(--site-bg);
  border: 1px solid var(--site-border);
  color: var(--site-plum);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.fs-drawer-mini-btn:hover:not(:disabled) {
  background: var(--site-orchid-soft);
  border-color: var(--site-orchid);
  color: var(--site-orchid-deep);
}

.fs-drawer-mini-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fs-drawer-empty {
  font-size: 13px;
  color: var(--site-plum-muted);
  padding: 6px 2px;
}

