/* ─── ZOLT V2 — FULLSCREEN PLAYER STYLING ────────────────────────────────── */

#fullscreen-player {
  position: fixed;
  inset: 0;
  z-index: 9990;
  /* Sits above main content, below context menus and modals */
  display: none;
  overflow: hidden;
  background: #050505;
  color: var(--text-1);
  transform-origin: left bottom;
  /* Transitions dynamically from the bottom player bar */
  will-change: transform, opacity, border-radius;
  pointer-events: auto;
}

/* ── backdrop animated glow layers ── */
#fs-backdrop {
  position: absolute;
  inset: -10%;
  /* Overflow slightly to cover filter blur seams */
  z-index: 0;
  overflow: hidden;
  background: #070708;
  filter: blur(100px) saturate(190%);
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.8s ease;
}

.fs-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.55;
  width: 55vw;
  height: 55vw;
  will-change: transform;
  transition: background 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fs-blob-1 {
  top: -15%;
  left: -10%;
  background: var(--fs-color-1, #1e1b4b);
  animation: fs-float-1 34s infinite alternate ease-in-out;
}

.fs-blob-2 {
  bottom: -15%;
  right: -10%;
  background: var(--fs-color-2, #311042);
  animation: fs-float-2 28s infinite alternate ease-in-out;
}

.fs-blob-3 {
  top: 30%;
  right: 15%;
  background: var(--fs-color-3, #0f172a);
  animation: fs-float-3 24s infinite alternate ease-in-out;
}

.fs-blob-4 {
  bottom: 20%;
  left: 20%;
  background: var(--fs-color-4, #042f2e);
  animation: fs-float-4 38s infinite alternate ease-in-out;
}

@keyframes fs-float-1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(8vw, 12vh) scale(1.15) rotate(180deg);
  }

  100% {
    transform: translate(-4vw, -4vh) scale(0.9) rotate(360deg);
  }
}

@keyframes fs-float-2 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(-12vw, -8vh) scale(0.85) rotate(-180deg);
  }

  100% {
    transform: translate(4vw, 4vh) scale(1.2) rotate(-360deg);
  }
}

@keyframes fs-float-3 {
  0% {
    transform: translate(0, 0) scale(0.95);
  }

  50% {
    transform: translate(-8vw, 15vh) scale(1.1);
  }

  100% {
    transform: translate(12vw, -8vh) scale(0.9);
  }
}

@keyframes fs-float-4 {
  0% {
    transform: translate(0, 0) scale(1.1) rotate(0deg);
  }

  50% {
    transform: translate(12vw, -12vh) scale(0.8) rotate(90deg);
  }

  100% {
    transform: translate(-8vw, 8vh) scale(1.05) rotate(180deg);
  }
}

#fs-dark-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.45) 0%, rgba(5, 5, 5, 0.25) 50%, rgba(5, 5, 5, 0.65) 100%);
  pointer-events: none;
  user-select: none;
}

/* ── Content layers ── */
#fs-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  padding: var(--sp-8) var(--sp-10);
  box-sizing: border-box;
}

/* ── Header ── */
#fs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-2);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  transform: translateY(0);
}

#fs-header-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-3);
  opacity: 0.75;
}

#fs-close {
  background: transparent;
  border-radius: var(--r-full);
  color: var(--text-2);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-spring);
}

#fs-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-1);
  transform: scale(1.05);
}

#fs-close:active {
  transform: scale(0.92);
}

/* ── Center Artwork ── */
#fs-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  /* Essential for 3D card tilt */
  padding: var(--sp-6) 0;
}

.fs-art-container {
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  z-index: 5;
}

/* Make album art wrapper/vinyl record scale up larger when controls auto-hide */
#fullscreen-player.controls-hidden .fs-art-container {
  transform: scale(1.18);
}

.fs-art-wrap {
  width: 38vh;
  height: 38vh;
  min-width: 260px;
  min-height: 260px;
  max-width: 440px;
  max-height: 440px;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  user-select: none;
  /* Fix Webkit/Blink hardware accelerated transform clipping overflow bug */
  isolation: isolate;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.fs-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  pointer-events: none;
}

/* ── Art Changing Slide Transitions ── */
.fs-art-container.slide-out-left {
  transform: translateX(-120vw) scale(0.65) rotate(-22deg) !important;
  opacity: 0 !important;
  transition: transform 0.45s cubic-bezier(0.3, 0.05, 0.2, 1), opacity 0.4s ease !important;
}

.fs-art-container.slide-in-right-init {
  transform: translateX(120vw) scale(0.65) rotate(22deg) !important;
  opacity: 0 !important;
  transition: none !important;
}

/* Custom vinyl records roll/slide transition */
#fullscreen-player.style-vinyl .fs-art-container.slide-out-left {
  transform: translateX(-150vw) rotate(-220deg) scale(0.55) !important;
  opacity: 0 !important;
  transition: transform 0.55s cubic-bezier(0.3, 0.05, 0.2, 1), opacity 0.45s ease !important;
}

#fullscreen-player.style-vinyl .fs-art-container.slide-in-right-init {
  transform: translateX(150vw) rotate(220deg) scale(0.55) !important;
  opacity: 0 !important;
  transition: none !important;
}

/* ── Customizable UI Styles ── */

/* 1. Ambient Glass */
#fullscreen-player.style-ambient-glass .fs-art-wrap {
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#fullscreen-player.style-ambient-glass .fs-art-wrap img {
  border-radius: 16px;
}

/* 2. Minimal */
#fullscreen-player.style-minimal .fs-art-wrap {
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* 3. Vinyl Deck */
#fullscreen-player.style-vinyl .fs-art-wrap {
  width: 40vh;
  height: 40vh;
  border-radius: 50%;
  background: #0c0c0d;
  border: 8px solid #141416;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Rotating vinyl grooves */
#fullscreen-player.style-vinyl .fs-art-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle,
      rgba(0, 0, 0, 0.8) 0px,
      rgba(0, 0, 0, 0.8) 1px,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(0, 0, 0, 0.9) 3px);
  z-index: 1;
  pointer-events: none;
}

#fullscreen-player.style-vinyl .fs-art-wrap img {
  width: 50%;
  height: 50%;
  border-radius: 50%;
  border: 3px solid #141416;
  z-index: 2;
}

/* Continuous rotation when playing */
#fullscreen-player.style-vinyl .fs-art-wrap.vinyl-spinning {
  animation: spin-vinyl 18s linear infinite;
}

#fullscreen-player.style-vinyl .fs-art-wrap.vinyl-paused {
  animation: spin-vinyl 18s linear infinite;
  animation-play-state: paused;
}

@keyframes spin-vinyl {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 4. Aurora Glow */
#fullscreen-player.style-aurora .fs-art-wrap {
  border-radius: 20px;
  box-shadow: 0 0 50px var(--fs-color-1, #1db954), 0 0 90px var(--fs-color-2, rgba(168, 85, 247, 0.4));
  animation: aurora-pulse 6s infinite alternate ease-in-out;
}

@keyframes aurora-pulse {
  0% {
    box-shadow: 0 0 40px var(--fs-color-1, #1db954), 0 0 70px var(--fs-color-2, rgba(168, 85, 247, 0.4));
    transform: scale(1);
  }

  100% {
    box-shadow: 0 0 60px var(--fs-color-2, #a855f7), 0 0 110px var(--fs-color-1, rgba(29, 185, 84, 0.5));
    transform: scale(1.02);
  }
}

/* ── Track Info (Title/Artist) ── */
.fs-track-info {
  position: absolute;
  bottom: 148px;
  left: var(--sp-10);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  pointer-events: auto;
}

.fs-track-text {
  max-width: 460px;
}

.fs-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-1);
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.fs-artist {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  opacity: 0.85;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.fs-track-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fs-action-btn {
  background: transparent;
  border-radius: 50%;
  color: var(--text-3);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-spring);
}

.fs-action-btn:hover {
  background: transparent;
  color: var(--text-1);
  transform: scale(1.08);
}

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

.fs-action-btn.liked {
  color: var(--danger) !important;
}

/* ── Bottom Controls Bar ── */
.fs-bottom-controls {
  position: absolute;
  bottom: var(--sp-8);
  left: var(--sp-10);
  right: var(--sp-10);
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  pointer-events: auto;
}

/* ── Progress bar ── */
.fs-progress-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 500;
  width: 100%;
}

.fs-prog-bar-container {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-full);
  cursor: pointer;
  position: relative;
  transition: height var(--t-fast);
}

.fs-prog-bar-container:hover {
  height: 7px;
}

.fs-prog-fill {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: var(--r-full);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear, box-shadow var(--t-fast);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.fs-prog-bar-container:hover .fs-prog-fill {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.65);
}

.fs-prog-bar-container .progress-thumb {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--text-1);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
}

.fs-prog-bar-container:hover .progress-thumb {
  opacity: 1;
}

/* ── Controls Row ── */
.fs-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.fs-controls-left-spacer {
  min-width: 240px;
  /* Matches the space needed for track-info on the left */
  flex: 1;
}

.fs-controls-center {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  justify-content: center;
  flex: 1.5;
}

.fs-controls-center .ctrl-btn {
  width: 44px;
  height: 44px;
}

.fs-controls-center .ctrl-btn-play {
  width: 56px;
  height: 56px;
  background: #ffffff;
  color: #000000;
}

.fs-controls-center .ctrl-btn-play svg {
  width: 26px;
  height: 26px;
}

.fs-controls-right {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  justify-content: flex-end;
  min-width: 240px;
  flex: 1;
}

.fs-vol-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-right: var(--sp-2);
}

.fs-vol-slider {
  width: 90px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, var(--text-1) var(--volume-percent, 100%), rgba(255, 255, 255, 0.1) var(--volume-percent, 100%));
  border-radius: var(--r-full);
  cursor: pointer;
  outline: none;
  transition: background var(--t-fast);
}

.fs-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--t-fast), transform var(--t-fast);
}

.fs-vol-wrap:hover .fs-vol-slider::-webkit-slider-thumb {
  opacity: 1;
}

.fs-vol-wrap:hover .fs-vol-slider {
  background: linear-gradient(to right, var(--text-1) var(--volume-percent, 100%), rgba(255, 255, 255, 0.1) var(--volume-percent, 100%));
}

.fs-vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.fs-fullscreen-btn-right {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2);
  border-radius: 50%;
  transition: color var(--t-fast), transform var(--t-spring), background var(--t-fast);
}

.fs-fullscreen-btn-right:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.06);
}

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

/* ── Mouse Inactivity / Controls Hidden state ── */
#fullscreen-player.controls-hidden {
  cursor: none;
}

#fullscreen-player.controls-hidden #fs-header {
  transform: translateY(-80px);
  opacity: 0;
  pointer-events: none;
}

#fullscreen-player.controls-hidden #fs-bottom-controls {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

#fullscreen-player.controls-hidden .fs-track-info {
  /* Shift down-left slightly to look tidy in the corner */
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

/* Responsive adjustment for controls hidden - let's make sure it's fully fluid */
#fullscreen-player.controls-hidden .fs-track-info.keep-visible {
  transform: translate(-10px, 92px);
  /* Shifted closer to the corner */
  opacity: 0.95;
  pointer-events: auto;
}

#fullscreen-player.controls-hidden .fs-track-info.keep-visible .fs-track-actions {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

/* ── Mobile Fullscreen Player Responsive Styling ── */
/* ── Mobile Base Responsive Styling ── */
@media (max-width: 950px) {
  #fullscreen-player {
    z-index: 10000;
  }

  /* Sidebars on mobile: take full overlay cleanly */
  .fs-settings-sidebar {
    top: 54px;
    right: -100%;
    width: calc(100vw - 32px);
    max-width: 340px;
    height: calc(100vh - 100px);
    max-height: calc(100vh - 100px);
  }

  .fs-settings-sidebar.open {
    transform: translateX(calc(-100vw + 16px));
  }
}

/* ── Mobile Portrait Mode ── */
@media (max-width: 768px) and (orientation: portrait), (max-height: 950px) and (orientation: portrait) {
  #fs-content {
    padding: var(--sp-4) var(--sp-5) var(--sp-6) var(--sp-5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
  }

  #fs-header {
    padding: var(--sp-2) 0;
  }

  #fs-customize-btn {
    order: 1;
    margin-right: auto;
  }

  #fs-header-title {
    order: 2;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    text-align: center;
  }

  #fs-close {
    order: 3;
    margin-left: auto;
  }

  #fs-style-cycle,
  #fs-queue-btn {
    display: none !important;
  }

  #fs-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sp-2) 0;
  }

  .fs-art-container {
    transform: scale(1);
    margin-bottom: 0;
  }

  .fs-art-wrap {
    width: 62vw;
    height: 62vw;
    min-width: 200px;
    min-height: 200px;
    max-width: 300px;
    max-height: 300px;
  }

  .fs-track-info {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--sp-4);
  }

  .fs-track-text {
    max-width: 100%;
    text-align: center;
  }

  .fs-title {
    font-size: 20px;
    font-weight: 700;
  }

  .fs-artist {
    font-size: 14px;
    opacity: 0.8;
  }

  .fs-track-actions {
    margin-top: var(--sp-2);
  }

  .fs-bottom-controls {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    gap: var(--sp-4);
  }

  .fs-controls-row {
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .fs-controls-left-spacer,
  .fs-vol-wrap,
  #fs-download,
  #fs-fullscreen-exit,
  #fs-shuffle,
  #fs-repeat {
    display: none !important;
  }

  .fs-controls-center {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: var(--sp-6);
  }

  .fs-controls-center .ctrl-btn {
    width: 48px;
    height: 48px;
  }

  .fs-controls-center .ctrl-btn-play {
    width: 64px;
    height: 64px;
  }

  .fs-controls-right {
    display: flex !important;
    position: static !important;
    width: auto !important;
    margin: 0 !important;
  }

  #fs-lyrics-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  #fs-lyrics-toggle:active {
    transform: scale(0.9);
  }

  #fullscreen-player:not(.lyrics-state-art) #fs-lyrics-toggle {
    color: var(--accent, #ffffff) !important;
  }
}

/* ── Mobile Landscape Mode ── */
@media (orientation: landscape) and (max-height: 540px), (max-width: 950px) and (orientation: landscape) {
  #fs-content {
    padding: 8px 20px 10px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100vh !important;
    max-height: 100vh !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Header adjustments for landscape */
  #fs-header {
    height: 34px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
  }

  #fs-customize-btn {
    order: 1 !important;
    margin-right: auto !important;
  }

  #fs-header-title {
    display: none !important;
  }

  #fs-close {
    order: 3 !important;
    margin-left: auto !important;
  }

  #fs-style-cycle,
  #fs-queue-btn {
    display: none !important;
  }

  /* Center Stage */
  #fs-center {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 4px 0 !important;
  }

  #fullscreen-player.lyrics-state-split #fs-center {
    display: flex !important;
    flex-direction: row !important;
    gap: 24px !important;
  }

  /* Artwork with smooth scale zoom transition */
  .fs-art-container {
    transform: scale(1) !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    width: auto !important;
    height: auto !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* Zoom-in animation on idle / controls-hidden */
  #fullscreen-player.controls-hidden .fs-art-container {
    transform: scale(1.15) !important;
  }

  #fullscreen-player.lyrics-state-split.controls-hidden .fs-art-container {
    transform: scale(1.08) !important;
  }

  .fs-art-wrap {
    width: 52vh !important;
    height: 52vh !important;
    min-width: 130px !important;
    min-height: 130px !important;
    max-width: 230px !important;
    max-height: 230px !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease !important;
  }

  #fullscreen-player.lyrics-state-split .fs-art-wrap {
    width: 44vh !important;
    height: 44vh !important;
    min-width: 120px !important;
    min-height: 120px !important;
    max-width: 185px !important;
    max-height: 185px !important;
  }

  #fullscreen-player.lyrics-state-split .fs-lyrics-container,
  #fullscreen-player.lyrics-state-lyrics .fs-lyrics-container {
    display: flex !important;
    flex: 1 !important;
    height: 100% !important;
    max-height: calc(100vh - 110px) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Track Info positioning with smooth slide-down animation */
  .fs-track-info {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 4px 0 2px 0 !important;
    padding: 0 4px !important;
    flex-shrink: 0 !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease !important;
  }

  /* Smoothly animate song/artist down when controls auto-hide */
  #fullscreen-player.controls-hidden .fs-track-info,
  #fullscreen-player.controls-hidden .fs-track-info.keep-visible {
    transform: translateY(58px) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  #fullscreen-player.controls-hidden .fs-track-actions {
    opacity: 0 !important;
    transform: scale(0.9) !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
  }

  .fs-track-text {
    max-width: 75% !important;
    text-align: left !important;
  }

  .fs-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }

  .fs-artist {
    font-size: 13px !important;
    opacity: 0.85 !important;
    margin-top: 2px !important;
  }

  .fs-track-actions {
    margin: 0 !important;
    gap: 8px !important;
  }

  /* Bottom Controls positioning */
  .fs-bottom-controls {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    padding: 0 4px !important;
  }

  .fs-progress-wrap {
    width: 100% !important;
    margin: 0 !important;
  }

  .fs-controls-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  /* HIDE UNNECESSARY PC CONTROLS ON LANDSCAPE MOBILE */
  .fs-controls-left-spacer,
  .fs-vol-wrap,
  #fs-download,
  #fs-fullscreen-exit,
  #fs-shuffle,
  #fs-repeat {
    display: none !important;
  }

  .fs-controls-center {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px !important;
  }

  .fs-controls-center .ctrl-btn {
    width: 40px !important;
    height: 40px !important;
  }

  .fs-controls-center .ctrl-btn-play {
    width: 50px !important;
    height: 50px !important;
  }

  .fs-controls-right {
    display: flex !important;
    position: static !important;
    width: auto !important;
    margin: 0 !important;
  }

  #fs-lyrics-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  #fs-lyrics-toggle:active {
    transform: scale(0.9);
  }

  #fullscreen-player:not(.lyrics-state-art) #fs-lyrics-toggle {
    color: var(--accent, #ffffff) !important;
  }
}

/* ─── FULLSCREEN CUSTOMIZATION SIDEBAR ────────────────────────────────── */

.fs-settings-sidebar {
  position: absolute;
  top: 66px;
  right: -340px;
  width: 320px;
  height: auto;
  max-height: calc(100vh - 202px);
  background: rgba(16, 16, 18, 0.7);
  backdrop-filter: blur(45px) saturate(210%);
  -webkit-backdrop-filter: blur(45px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: var(--sp-5);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-1);
}

.fs-settings-sidebar.open {
  transform: translateX(-364px);
}

/* ─── FULLSCREEN QUEUE SIDEBAR ────────────────────────────────── */

.fs-queue-clear-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.fs-queue-clear-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-1);
}

.fs-queue-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: var(--sp-4) !important;
}

.fs-queue-list-container {
  flex: 1;
  overflow-y: auto;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
}

.fs-queue-list-container::-webkit-scrollbar {
  width: 4px;
}
.fs-queue-list-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.fs-queue-current-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 10px;
  margin-top: 4px;
}

.fs-queue-current-art-wrap {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.fs-queue-current-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fs-queue-playing-wave {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.fs-queue-playing-wave .wave-bar {
  width: 2px;
  height: 10px;
  background: var(--accent, #ffffff);
  border-radius: 1px;
  animation: bounce-wave 0.8s ease-in-out infinite alternate;
}

.fs-queue-playing-wave .wave-bar.bar-1 { animation-delay: 0.1s; }
.fs-queue-playing-wave .wave-bar.bar-2 { animation-delay: 0.3s; animation-duration: 0.6s; }
.fs-queue-playing-wave .wave-bar.bar-3 { animation-delay: 0.2s; }

@keyframes bounce-wave {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.fs-queue-current-info {
  flex: 1;
  min-width: 0;
}

.fs-queue-current-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-1);
}

.fs-queue-current-artist {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

.fs-queue-current-options {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.fs-queue-current-options:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.08);
}

.fs-queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fs-queue-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.fs-queue-item.dragging {
  opacity: 0.4;
  transform: scale(0.98);
}

.fs-qi-drag-handle {
  cursor: grab;
  color: var(--text-3);
  opacity: 0.3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.fs-queue-item:hover .fs-qi-drag-handle {
  opacity: 0.6;
}

.fs-queue-item img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.fs-qi-info {
  flex: 1;
  min-width: 0;
}

.fs-qi-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
}

.fs-qi-artist {
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 1px;
}

.fs-qi-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-qi-dur {
  font-size: 11px;
  color: var(--text-3);
}

.fs-qi-remove {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.fs-queue-item:hover .fs-qi-remove {
  opacity: 1;
}

.fs-qi-remove:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.fs-queue-item.drag-over-top {
  border-top: 2px solid var(--accent, #ffffff) !important;
}

.fs-queue-item.drag-over-bottom {
  border-bottom: 2px solid var(--accent, #ffffff) !important;
}

.fs-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: var(--sp-3);
}

.fs-sidebar-header h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.3px;
}

.fs-sidebar-close {
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: color var(--t-fast), background var(--t-fast);
}

.fs-sidebar-close:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.08);
}

.fs-sidebar-body {
  flex: 1;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* Custom scrollbar for sidebar body */
.fs-sidebar-body::-webkit-scrollbar {
  width: 4px;
}

.fs-sidebar-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.fs-sidebar-section h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-3);
  margin: 0 0 var(--sp-3) 0;
  font-weight: 700;
}

.fs-option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.fs-option-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-md);
  padding: 10px var(--sp-2);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-option-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-1);
  transform: translateY(-1px);
}

.fs-option-btn:active {
  transform: translateY(0);
}

.fs-option-btn.active {
  background: var(--accent, #ffffff);
  color: #000000;
  border-color: var(--accent, #ffffff);
  font-weight: 700;
  box-shadow: 0 4px 12px var(--accent-glow, rgba(255, 255, 255, 0.25));
}

/* 5. Solid Dark Theme Mode */
#fullscreen-player.style-solid-dark {
  background: #050505 !important;
}

#fullscreen-player.style-solid-dark #fs-backdrop {
  opacity: 0 !important;
  transition: opacity 0.8s ease;
}

#fullscreen-player.style-solid-dark #fs-dark-overlay {
  background: none !important;
}

#fullscreen-player.style-solid-dark .fs-art-wrap {
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

/* 6. Solid Color Theme Mode (Dynamic dominant color from art) */
#fullscreen-player.style-solid {
  background: var(--dynamic-solid, #121212) !important;
  transition: background 0.8s ease;
}

#fullscreen-player.style-solid #fs-backdrop {
  opacity: 0 !important;
  transition: opacity 0.8s ease;
}

#fullscreen-player.style-solid #fs-dark-overlay {
  background: none !important;
}

#fullscreen-player.style-solid .fs-art-wrap {
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

/* ── Solid Color Theme Customizer Specifics ── */

.solid-color-customize-wrapper {
  grid-column: span 1;
}

/* Accent active state when closed */
.solid-color-dropdown-menu.active:not(:hover) {
  background: var(--accent, #ffffff);
  color: #000000;
  border-color: var(--accent, #ffffff);
  box-shadow: 0 4px 12px var(--accent-glow, rgba(255, 255, 255, 0.25));
}

.solid-color-dropdown-menu.active:not(:hover) .solid-color-menu-header {
  color: #000000;
  font-weight: 700;
}

/* Mini preview color dot inside header */
.solid-color-mini-preview {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dynamic-solid, #121212);
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: background-color 0.3s ease, right 0.35s cubic-bezier(0.16, 1, 0.3, 1), top 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.solid-color-dropdown-menu.active:not(:hover) .solid-color-mini-preview {
  border-color: rgba(0, 0, 0, 0.25);
}

/* When the wrapper is hovered, shift the mini preview dot */
.solid-color-customize-wrapper:hover .solid-color-mini-preview {
  top: 22px;
}

.solid-color-palette-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 2px;
}

.solid-color-palette-colors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.solid-color-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  background: transparent;
  padding: 0;
}

.solid-color-swatch:hover {
  transform: scale(1.18);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.solid-color-swatch.active::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 2px solid #ffffff;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.solid-color-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.custom-color-option-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-2);
}

.custom-color-picker-input-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-color-picker-input-wrapper:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.custom-color-picker-input-wrapper input[type="color"] {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 60px;
  height: 60px;
  border: none;
  background: none;
  cursor: pointer;
}

.custom-color-picker-preview {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* ─── MAJESTIC RAYS & MOBILE GOD RAYS STYLES ─────────────────────────── */

@keyframes jumbo {
  from {
    background-position: 50% 50%, 50% 50%;
  }
  to {
    background-position: 350% 50%, 350% 50%;
  }
}

/* 7. Majestic Rays Theme Mode (PC Fullscreen) */
#fullscreen-player.style-majestic {
  background: #050505 !important;
}

#fullscreen-player.style-majestic #fs-backdrop {
  opacity: 0 !important;
  transition: opacity 0.8s ease;
}

#fullscreen-player.style-majestic #fs-dark-overlay {
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.5) 0%, rgba(5, 5, 5, 0.3) 50%, rgba(5, 5, 5, 0.75) 100%) !important;
}

#fullscreen-player.style-majestic .fs-art-wrap {
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
}

.majestic-god-rays {
  position: absolute;
  inset: -10%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  filter: blur(45px) saturate(220%);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  
  --stripes: repeating-linear-gradient(
    100deg,
    #000 0%,
    #000 7%,
    transparent 10%,
    transparent 12%,
    #000 16%
  );
  --rainbow: repeating-linear-gradient(
    100deg,
    var(--fs-color-1, #60a5fa) 10%,
    var(--fs-color-2, #e879f9) 15%,
    var(--fs-color-3, #60a5fa) 20%,
    var(--fs-color-4, #5eead4) 25%,
    var(--fs-color-1, #60a5fa) 30%
  );
  
  background-image: var(--stripes), var(--rainbow);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;
  
  mask-image: radial-gradient(ellipse at 100% 0%, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 35%, transparent 75%);
}

#fullscreen-player.style-majestic .majestic-god-rays {
  opacity: calc(var(--god-rays-intensity, 1) * 0.45);
}

.majestic-god-rays::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--stripes), var(--rainbow);
  background-size: 200%, 100%;
  animation: jumbo 55s linear infinite;
  mix-blend-mode: difference;
}

/* ── Mobile God Rays (For #now-playing container) ── */
.mobile-god-rays {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  filter: blur(28px) saturate(210%);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  
  --stripes: repeating-linear-gradient(
    100deg,
    #000 0%,
    #000 7%,
    transparent 10%,
    transparent 12%,
    #000 16%
  );
  --rainbow: repeating-linear-gradient(
    100deg,
    var(--fs-color-1, #60a5fa) 10%,
    var(--fs-color-2, #e879f9) 15%,
    var(--fs-color-3, #60a5fa) 20%,
    var(--fs-color-4, #5eead4) 25%,
    var(--fs-color-1, #60a5fa) 30%
  );
  
  background-image: var(--stripes), var(--rainbow);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;
  
  /* Coming from right and going to left */
  mask-image: radial-gradient(ellipse at 100% 50%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 50%, black 25%, transparent 75%);
}

/* Only active on mobile view (under 768px) inside open now-playing panel */
@media (max-width: 768px) {
  #now-playing.open .mobile-god-rays {
    opacity: calc(var(--god-rays-intensity, 1) * 0.42);
  }
}

.mobile-god-rays::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--stripes), var(--rainbow);
  background-size: 200%, 100%;
  animation: jumbo 42s linear infinite;
  mix-blend-mode: difference;
}