.play-mode .menu-select,
.play-mode #leaderboard-container,
.play-mode #chat-container,
.play-mode .skin-button,
.play-mode footer,
.play-mode #current-timer,
.play-mode .music-player,
.play-mode #map-container,
.play-mode .mode-toggles,
.play-mode .hold-to-spin-hint {
  display: none !important;
}

.play-mode .skin-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100vh;
}

#play-mode-bg {
  pointer-events: none;
}

#play-mode-colors {
  position: fixed;
  left: 10px;
  bottom: 50px;
  background: rgb(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgb(0, 0, 0, 0.5);
  width: auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 5px;
  z-index: 1000;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#play-mode-colors:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}
#play-mode-colors .color-button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgb(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.color-button:hover::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}
#play-mode-colors .color-button:hover {
  border-color: #00ff88;
}
#play-mode-colors.hidden {
  transform: translateX(-350px);
  opacity: 0;
}

#play-mode-songs {
  position: fixed;
  right: 10px;
  bottom: 50px;
  top: 10px;
  background: rgb(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgb(0, 0, 0, 0.5);
  width: auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1000;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 136, 0.3) rgba(255, 255, 255, 0.1);
}
#play-mode-songs:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}
#play-mode-songs button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  font-family: 'FredokaOne', sans-serif;
  letter-spacing: 1px;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  align-items: center;
  margin: 0;
  border: 1px solid rgb(0, 0, 0, 0.5);
  background: rgb(255, 255, 255, 0.1);
  animation: slideIn 0.3s ease-out forwards;
  opacity: 0;
  border-radius: 10px;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
}
#play-mode-songs button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
#play-mode-songs button::before {
  content: '♪';
  margin-right: 10px;
  font-size: 1.1rem;
  opacity: 0.7;
}
#play-mode-songs button.active {
  background: rgba(0, 255, 136, 0.2);
  border-color: #00ff88;
  color: #00ff88;
  padding-left: 20px;
}
#play-mode-songs.hidden {
  transform: translateX(350px);
  opacity: 0;
}

#prev-button {
  background: none;
  border: 1px solid rgb(0, 0, 0, 0.5);
  color: white;
  border-radius: 10px;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#prev-button:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}

#play-button {
  background: none;
  border: 1px solid rgb(0, 0, 0, 0.5);
  color: white;
  border-radius: 10px;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#play-button:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}

#next-button {
  background: none;
  border: 1px solid rgb(0, 0, 0, 0.5);
  color: white;
  border-radius: 10px;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#next-button:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}

#shuffle-button {
  background: none;
  border: 1px solid rgb(0, 0, 0, 0.5);
  color: white;
  border-radius: 10px;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#shuffle-button:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}

#loop-button {
  background: none;
  border: 1px solid rgb(0, 0, 0, 0.5);
  color: white;
  border-radius: 10px;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#loop-button:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}

#current-song-name {
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  text-align: center;
  min-height: 10px;
  color: white;
  font-family: 'FredokaOne', sans-serif;
  font-size: 1.2rem;
  margin: 1px 15px;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgb(0, 0, 0, 0.5);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#play-mode-exit {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(0, 0, 0, 0.5);
  border-radius: 10px;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
  color: #ffffff;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
#play-mode-exit:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}

#play-mode-controls {
  position: fixed;
  border: 1px solid rgb(0, 0, 0, 0.5);
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#play-mode-controls .controls-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
#play-mode-controls:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}

#hide-songs-button {
  position: fixed;
  right: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(0, 0, 0, 0.5);
  color: white;
  padding: 8px 15px;
  border-radius: 10px;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  font-family: 'FredokaOne', sans-serif;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}
#hide-songs-button:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}

#hide-colors-button {
  position: fixed;
  left: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(0, 0, 0, 0.5);
  color: white;
  padding: 8px 15px;
  border-radius: 10px;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  font-family: 'FredokaOne', sans-serif;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}
#hide-colors-button:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}

.timeline-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 10px 0;
  cursor: pointer;
  position: relative;
}
.timeline-progress {
  height: 100%;
  background: #00ff88;
  border: 1px solid rgb(0, 0, 0, 0.5);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}
.timeline-handle {
  width: 12px;
  height: 12px;
  background: #00ff88;
  border: 1px solid rgb(0, 0, 0, 0.5);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

@media screen and (max-width: 1100px) {
  #play-mode-songs {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: 250px;
    top: 60px;
  }

  #play-mode-colors {
    left: 10px;
    bottom: 130px;
    width: auto;
  }

  #play-mode-controls {
    width: calc(100% - 40px);
    max-width: 400px;
    padding: 10px;
    bottom: 10px;
  }

  #hide-colors-button {
    left: 60px;
    bottom: auto;
    top: 10px;
  }

  #hide-songs-button {
    right: 10px;
    top: 10px;
    bottom: auto;
  }

  #current-song-name {
    font-size: 1rem;
    padding: 8px 15px;
    background: #00ff88;
    backdrop-filter: blur(10px);
  }

  .controls-row button {
    width: 35px;
    height: 35px;
  }

  .color-button {
    width: 35px;
    height: 35px;
  }

  #play-mode-songs button {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .timeline-container {
    margin: 5px 0;
  }
}

#play-mode-toggle {
  display: none;
}

@keyframes rgbIconPlayMode {
  0% { color: #ff0000; text-shadow: 0 0 5px rgba(255, 0, 0, 0.4); }
  16.666% { color: #ff8800; text-shadow: 0 0 5px rgba(255, 136, 0, 0.1); }
  33.333% { color: #ffff00; text-shadow: 0 0 5px rgba(255, 255, 0, 0.1); }
  50% { color: #00ff00; text-shadow: 0 0 5px rgba(0, 255, 0, 0.4); }
  66.666% { color: #0000ff; text-shadow: 0 0 5px rgba(0, 0, 255, 0.1); }
  83.333% { color: #8800ff; text-shadow: 0 0 5px rgba(136, 0, 255, 0.1); }
  100% { color: #ff0000; text-shadow: 0 0 5px rgba(255, 0, 0, 0.1); }
}

.play-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 15px;
  width: 15px;
}

.play-equalizer-bar {
  width: 3px;
  height: 100%;
  background: currentColor;
  animation: playEqualize 1s ease-in-out infinite, rgbIconPlayMode 3s linear infinite;
}

.play-equalizer-bar:nth-child(1) { animation-delay: 0.0s; }
.play-equalizer-bar:nth-child(2) { animation-delay: 0.2s; }
.play-equalizer-bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes playEqualize {
  0% { height: 30%; }
  50% { height: 100%; }
  100% { height: 30%; }
}