/* 플레이어 */
#playlist_bgm_box {
  display: none;
}
.playlist-player *::-webkit-scrollbar {
  display: none; /* Chrome에서 기본 스크롤바 제거 */
}
.playlist-player, .playlist-player * {
  font-family: var(--skin-default-font);
}
.playlist-player {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 70px;
  color: var(--skin-base-color);
  background: var(--skin-text-color);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  transition-duration: 0.6s;
  box-shadow: 0px -14px 50px -28px var(--skin-base-color);
}

/* 기타 설정 */
.playlist-player.colored {
  background: linear-gradient(to right, var(--skin-point-color), var(--skin-point-color-r-t));
  color: var(--skin-point-color-auto);
  backdrop-filter: blur(5px);
  box-shadow: 0px 0px 3px var(--skin-point-color);
  border-top: 1px solid var(--skin-point-color-t);
}
.playlist-player.colored #p_shadow,
.playlist-player.colored #p_shadow_btn,
.playlist-player.colored #v_shadow,
.playlist-player.colored #v_shadow_btn {
 background: var(--skin-text-color);
}

.lpp .playlist-player-thumb {
  position: absolute;
  width: 150px;
  height: 150px;
  bottom: 10px;
}
.lpp:not(.compact) .playlist-player-title{
  opacity: 0;
}

.playlist-player.lpp .playlist-player-thumb {
  border-radius: 100% !important;
  overflow: visible;
}
.playlist-player.compact.lpp .playlist-player-thumb{
  overflow: visible;
}
.lpp .playlist-player-thumb-box {
  position: relative;
  animation: turntable 4s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  border-radius: 100% !important;
}
.lpp .playlist-player-thumb-box::before {
  content: '';
  width: 10px;
  height: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100%;
  background: black;
  position: absolute;
  border-radius: 100% !important;
}

.lpp .playlist-player-thumb::before {
  content: '';
  position: absolute;
  background: linear-gradient(45deg, var(--skin-base-color), var(--skin-base-color-d));
  height: 50px;
  width: 4px;
  display: block;
  bottom: 5px;
  z-index: 2;
  right: -10px;
  transition-duration: 0.5s;
  border-radius: 1px;
}
.lpp .playlist-player-thumb::after {
  content: '';
  position: absolute;
  background: linear-gradient(45deg, var(--skin-base-color), var(--skin-base-color-d));
  right: -12px;
  width: 8px;
  height: 14px;
  bottom: 0px;
  z-index: 2;
  border-radius: 2px;
  transition-duration: 0.5s;
}
.active.lpp .playlist-player-thumb::before {
  rotate: -20deg;
  transition-property: rotate, height;
  transition-delay: 0s, 0.4s;
  transform-origin: bottom;
}
.active.lpp .playlist-player-thumb::after {
  rotate: -20deg;
  transform-origin: center;
}
.lpp.compact .playlist-player-thumb::before{
  height: 40px;
  right: -9px;
}
.lpp.compact .playlist-player-thumb::after{
  right: -11px;
}
.lpp.compact .playlist-player-songinfo{
  align-items: center;
  user-select: none;
  flex: 1;
}
.lpp.compact.playlist-player .playlist-player-title{
  height: 100%;
  align-items: center;
}
.lpp.compact.playlist-player .playlist-player-title #p_title {
  height: 1.5em;
  align-content: center;
}
.lpp.compact.playlist-player .playlist-player-title #p_artist{
  -webkit-line-clamp: 1;
  display: flex;
  max-height: 1.5em;
  line-height: 1.5em;
}

.playlist-player.compact.lpp {
  width: 300px;
  height: 100px;
  border-radius: 15px;
}
.playlist-player.compact.lpp .playlist-player-thumb{
  width: 100px;
  height: 100px;
  top: -20px;
  left: 0;
}

.playlist-player.compact.lpp .playlist-player-inner {
  width: 100%;
  padding: 15px;
  justify-content: space-around;
  margin-left: 80px;
}
.playlist-player.compact.lpp .playlist-player-toggle-btn.skin-btn {
right: 12px;
top: 10px;
}
.playlist-player.compact.lpp .playlist-btn.skin-btn{
border-radius: 10px;
padding: 14px 18px;
}
@keyframes turntable {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media all and (max-width: 650px) {
  .lpp .playlist-player-thumb {
    position: relative;
    width: 85px;
    height: 85px;
    bottom: 20px;
    left: -10px;
  }
}

@media all and (max-width: 540px) {
  .lpp .playlist-player-thumb {
    display: none;
  }
}

.p_square.playlist-player, 
.p_square.playlist-player.compact{
  border-radius: 0px;
}
.p_square.playlist-player * {
  border-radius: 0px;
}
.p_square.playlist-player .playlist-player-play-control .playlist-btn.skin-btn{
  border-radius: 0px;
}
.p_square.playlist-player.compact .playlist-player-thumb {
  border-radius: 0px;
}
.p_square.playlist-player .playlist-player-thumb{
  box-sizing: border-box;
  border: 1px solid;
}

.playlist-player.active.player-pulse::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid var(--skin-text-color-t);
  animation: player-pulse 1.2s infinite ease-in;
  z-index: -1;
}
@keyframes player-pulse {
  0% {
    opacity: 1;
    width: 100%;
    height: 100%;
  }
  100% {
    opacity: 0;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
  }
}
/* 기타 설정 여기까지 */

.playlist-player.top-player {
  top: 0;
  bottom: unset;
}

.playlist-player.disabled {
  pointer-events: none;
  opacity: 0;
  z-index: -99;
}

.playlist-player-inner {
  display: inline-flex;
  height: 50px;
}

.playlist-player-songinfo {
  display: flex;
  align-items: center;
  user-select: none;
}

.playlist-player-thumb {
  width: 45px;
  height: 45px;
  border-radius: 20px;
  overflow: hidden;
  transition-duration: 0.4s;
  position: relative;
}

.playlist-player .playlist-player-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

.playlist-player-thumb-icon {
  width:100%;
  height:100%;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  position: absolute;
  color: white;
  transition: 0.6s;
}

.playlist-player-thumb:hover .playlist-player-thumb-icon{
  opacity: 1;
}

.playlist-player-thumb-box {
  position: relative;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}
.playlist-player-title {
  width: 130px;
  padding: 0px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.playlist-player-title #p_title {
  font-size: 13px;
  font-weight: bold;
  display: flex;
  max-height: 2em;
  overflow: hidden;
  line-height: 1em;
  align-items: center;
  display: -webkit-box;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: calc(1em* 2);
}
.playlist-player-title #p_artist {
  display: -webkit-box;
  font-size: 11px;
  opacity: 0.8;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 2em;
  line-height: 1em;
}

.playlist-player-time {
  display: flex;
}

.playlist-player-time span {
  min-width: 60px;
  margin: 0px 10px;
  text-align: center;
  font-weight: bold;
}
.playlist-player-bar {
  position: relative;
  display: flex;
  height: 20px;
}

#p_shadow {
  top: 0;
  height: 4px;
  background: var(--skin-point-color);
  width: 0%;
  position: absolute;
  margin: 8px 0px;
  border-radius: 1px;
  pointer-events: none;
}

#p_shadow_btn {
  top: 0;
  width: 15px;
  height: 15px;
  background: var(--skin-point-color);
  position: absolute;
  margin: 2px 0px;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition-duration: 0.6s;
  transition-property: opacity;
}

.playlist-player-bar:hover #p_shadow_btn {
  opacity: 1;
}

.playlist-player-play-control {
  display: flex;
  justify-content: space-around;
}
#player-repeat-btn .fa-1 {
  display: none;
}
#player-repeat-btn.onlyone.active .fa-1 {
  display: flex;
  width: 12px;
  height: 12px;
  border-radius: 100%;
  font-size: 12px;
  scale: 0.5;
  padding: 4px;
  align-items: center;
  justify-content: center;
  position: absolute;
}
.playlist-player-play-control .playlist-btn.skin-btn {
  padding: 2px 21px;
  border-radius: 6px;
}

.playlist-player-play-control .playlist-btn:nth-child(3) {
  display: none;
}

.active .playlist-player-play-control .playlist-btn:nth-child(2){
  display: none;
}

.active .playlist-player-play-control .playlist-btn:nth-child(3){
  display: inline-flex;
}

.playlist-player-buttons {
  display: inline-flex;
  align-items: center;
}

.playlist-player-volume-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-player-volume {
  position: relative;
  display: flex;
  align-items: center;
  width: 63px;
  margin: 10px;
}

.playlist-volume {
  width: 100%;
}

#v_shadow {
  top: 0;
  height: 4px;
  background: var(--skin-point-color);
  width: 100%;
  position: absolute;
  border-radius: 1px;
  pointer-events: none;
}
#v_shadow_btn {
  top: -6px;
  width: 15px;
  height: 15px;
  background: var(--skin-point-color);
  position: absolute;
  margin: 0;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition-duration: 0.6s;
  transition-property: opacity;
  left: calc(100% - 7px);
}

.playlist-player-volume-box:hover #v_shadow_btn {
  opacity: 1;
}
/* 재생 위치 바 설정 */
input[type='range'] {
  background: transparent;
}

input[type='range']:focus {
  outline: none;
}

input[type='range'],
input[type='range']::-webkit-slider-runnable-track,
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
  background-color: var(--skin-point-color);
  border: 1px solid var(--skin-point-color);
  border-radius: 100%;
  width: 15px;
  height: 15px;
  margin-top: -5px;
  margin-left: 0px;
  opacity: 0;
}

input[type=range]::-moz-range-thumb {
  background-color: var(--skin-point-color);
  border: 1px solid var(--skin-base-color);
  border-radius: 100%;
  width: 15px;
  height: 15px;
  opacity: 0;
}

input[type=range]::-ms-thumb {
  background-color: var(--skin-point-color);
  border: 1px solid var(--skin-base-color);
  border-radius: 100%;
  width: 15px;
  height: 15px;
  opacity: 0;
}

input[type=range]::-webkit-slider-runnable-track {
  background: var(--skin-base-color);
  height: 4px;
  border-radius: 5px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
  outline: none;
}

input[type=range]::-moz-range-track {
  background: var(--skin-base-color);
  height: 4px;
  border-radius: 5px;
}

input[type=range]::-ms-track {
  background: var(--skin-base-color);
  height: 4px;
  border-radius: 5px;
}

input[type=range]::-ms-fill-lower {
  background: var(--skin-base-color);
}

input[type=range]::-ms-fill-upper {
  background: var(--skin-base-color);
}
input#playlist-player-progress {
  width: 100%;
}

.playlist-player-toggle-btn {
  position: absolute;
  right: 50px;
}
#player-clear-btn {
  opacity: 1;
}
#player-setting-btn {
  opacity: 1;
}
.compact #player-clear-btn{
  opacity: 0;
  pointer-events: none;
}
.compact #player-setting-btn{
  opacity: 0;
  pointer-events: none;
}
.compact #player-top-btn{
  opacity: 0;
  pointer-events: none;
}
.playlist-player-playlist {
  display: flex;
  position: absolute;
  z-index: 2;
  padding: 15px 20px;
  border-radius: 10px;
  justify-content: center;
  color: var(--skin-base-color);
  bottom: 100%;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  translate: 0px 0px;
  transition-duration: 0.6s;
  overflow: auto;
  width: 220px;
  background: var(--skin-text-color);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid;
}
.floatdown .playlist-player-playlist {
  top: 100%;
  bottom: unset;
}

.playlist-player-playlist.active {
  opacity: 1;
  pointer-events: auto;
  translate: 0px -10px;
}

.floatdown .playlist-player-playlist.active {
  translate: 0px 10px;
}
.player-songlist {
  width: 100%;
  max-height: 500px;
}
.player-song {
  display: flex;
  padding: 5px 0px;
  align-items: center;
  border-radius: 10px;
  transition-duration: 0.4s;
  cursor: pointer;
  max-height: 60px;
}
.player-song-info {
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.player-song-number {
  width: 20px;
  text-align: center;
}
.player-song-title {
  font-size: 12px;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
  max-height: 1.5em;
  width: 130px;
}
.player-song:hover .player-song-title {
  color: var(--skin-point-color);
}
.player-song.active {
  background: var(--skin-base-color);
  color: var(--skin-text-color);
}

.player-song-artist {
  font-size: 11px;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
  max-height: 1.5em;
  width: 130px;
}
.player-song:hover {
  translate: 3px 0px;
  background: var(--skin-point-color-t);
}
.player-song-thumb {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  margin: 0px 15px;
  background-size: cover;
  background-position: center;
}

.playlist-player .error_window {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  padding: 15px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--skin-text-color-auto);
  color: var(--skin-text-color);
  border: 1px solid;
  bottom: calc(100% + 10px);
  opacity: 0;
  animation: slide_up 2s;
}
.playlist-player.floatdown .error_window{
  top: calc(100% + 10px);
  bottom: unset;
  animation: slide_down 2s;
}
@keyframes slide_up {
  0% {
    translate: 0px 0px;
    opacity: 0;
  }
  70% {
    translate: 0px -30px;
    opacity: 1;
  }
  100% {
    translate: 0px -30px;
    opacity: 0;
  }
}
@keyframes slide_up_remain {
  0% {
    translate: 0px 0px;
    opacity: 0;
  }
  100% {
    translate: 0px -30px;
    opacity: 1;
  }
}
@keyframes slide_down {
  0% {
    translate: 0px 0px;
    opacity: 0;
  }
  70% {
    translate: 0px 30px;
    opacity: 1;
  }
  100% {
    translate: 0px 30px;
    opacity: 0;
  }
}

/* 플레이어 여기까지 */

/* 설정 창 */
.player-setting-window-wrapper {
  width: 0px;
  height: 0px;
  position: absolute;
  left: 100px;
}
.player-setting-window {
  position: absolute;
  width: 140px;
  border-radius: 20px;
  padding: 10px;
  box-sizing: border-box;
  flex-wrap: wrap;
  bottom: 10px;
  left: -50px;
  color: var(--skin-base-color);
  background: var(--skin-text-color);
  animation: slide_up_remain 0.4s;
  display: none;
  animation-fill-mode: forwards;
  flex-direction: column;
  align-items: center;
  align-content: center;
}
.floatdown .player-setting-window {
  top: 50px;
  bottom: unset;
  animation: slide_down 0.4s;
}
.player-setting-window .setting-btn {
  padding: 0px;
  width: 30px;
  height: 30px;
  margin: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  position: relative;
  font-size: 18px;
}
.player-setting-window .setting-btn.active {
  border: 3px double var(--skin-point-color);
}
.player-hover-text {
  display: none;
  position: absolute;
  padding: 2px 10px;
  font-size: 12px;
  word-wrap: normal;
  word-break: keep-all;
  background: var(--skin-base-color);
  color: var(--skin-text-color);
  animation: slide_up_remain 0.4s;
  animation-fill-mode: forwards;
  top: 0;
  pointer-events: none;
  white-space: nowrap;
}
.player-setting-window .skin-btn:hover .player-hover-text{
  display: block;
}
/* 설정 창 여기까지 */

/* 컴팩트 플레이어 */
.playlist-player.compact {
  position: fixed;
  width: 270px;
  border-radius: 30px;
  height: 70px;
  left: calc(50% - 135px);
  bottom: 30px;
  transition-property: width, height, color, background, background-image;
  box-shadow: 1px 2px 15px 0px rgba(0, 0, 0, 0.3);
}
.playlist-player.compact .skin-btn {
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  margin: 3px;
  padding: 0px;
}
.playlist-player.compact .playlist-player-inner {
  width: 100%;
  flex-direction: column;
  padding: 0px 10px;
  box-sizing: border-box;
  height: 100%;
  justify-content: center;
  align-items: center;
  margin-left: 20px;
}
.playlist-player.compact .playlist-player-control {
  width: 130px;
}
.playlist-player.compact .playlist-btn.skin-btn {
  width: 32px;
  border-radius: 7px;
}
.playlist-player.compact .playlist-player-thumb {
  width: 60px;
  height: 60px;
  border-radius: 25px;
  overflow: hidden;
  margin: 10px;
  position: absolute;
  left: -4px;
  top: -5px;
}

.playlist-player.compact .playlist-player-title {
  font-size: 10px;
  padding: 0;
  width: 100px;
  height: 20px;
  text-align: center;
}
.playlist-player.compact .playlist-player-title #p_title {
  font-size: 9px;
  text-overflow: ellipsis;
  word-break: keep-all;
  width: 100px;
  white-space: nowrap;
  overflow: hidden;
  align-items: center;
  min-width: 0;
  display: inline-block;
}

.playlist-player.compact .playlist-player-title #p_artist {
  display: none;
}

.playlist-player.compact .playlist-player-time span {
  font-size: 9px;
  min-width: 30px;
  margin: 0;
}

.playlist-player.compact span#playlist-player-infos1,
.playlist-player.compact span#playlist-player-infos2 {
  display:none;
}
.playlist-player.compact .playlist-player-toggle-btn.skin-btn {
  right: 14px;
  top: 18px;
}
.playlist-player.compact .playlist-player-play-control {
  margin-top: 1px;
}
.playlist-player.compact .playlist-player-buttons {
  display: none;
}

.playlist-player.compact .playlist-player-volume-box {
  display: none;
}
.playlist-player.compact .playlist-player-bar {
  margin: 2px 0px;
  height: 4px;
}
.playlist-player.compact #p_shadow {
  margin: 0;
}
.playlist-player.compact #p_shadow_btn {
  top: -3px;
  width: 10px;
  height: 10px;
  margin: 0;
}

.playlist-player.top-player.compact {
  top: 30px;
}
/* 컴팩트 버전 여기까지 */

/* 모바일 */
@media all and (max-width: 900px) {
  .playlist-player-toggle-btn{
    opacity: 0;
    pointer-events: none;
  }
  
  #player-top-btn {
    display: none;
  }
  #player-clear-btn {
    display: none;
  }
  #player-setting-btn {
    display: none;
  }
}

@media all and (max-width: 650px) {
  .playlist-player-title {
    display:none;
  }
  .playlist-player-volume-box {
    display:none;
  }
}

@media all and (max-width: 480px) {
  .playlist-player-buttons {
    display:none;
  }
}

@media all and (max-width: 350px) {
  .playlist-player-thumb {
    display: none;
  }
}

