@font-face {
  font-family: 'GmarketSansMedium';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.6/dist/web/static/pretendard-jp.css");

:root {
  --music-default-point:#B3BDB3;
  --music-default-base:#fff;
  --music-default-text:#000000;
  --music-point: var(--music-default-point);
  --music-base: var(--music-default-base);
  --music-text: var(-music-point);
  
}

body #bgm_box {padding-top:0;}

html.single #bgm_box .bgm-player {display:block !important;}

.music-player .material-icons {
color: var(--music-point);
}

.music-player {
  width: 260px; /* 기존보다 넓게 */
  height: 145px;
  background: var(--music-base);
  box-sizing: border-box;
  border-radius: 5px;
  position: fixed;
  padding: 7px;
  box-shadow: 0px 0px 10px rgb(68 90 89 / 30%);
  border: 2px double var(--music-point);
  overflow: hidden;
  transition: none !important; /* 드래그 시 버벅임 방지 */
  will-change: transform, left, top;
}


/* 점선 프리뷰 박스 */
.music-player-ghost {
  position: fixed;
  border: 3px dashed #333; /* 굵고 눈에 띄게 */
  background: transparent;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}


.music-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 145px;
  background: url('your-image.jpg') no-repeat center;
  background-size: 145%;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  animation: thumb-inside 25s ease-in-out infinite;
  overflow: hidden; /* ::after가 박스 안에 들어가도록 */
}

/* ::after를 그라데이션 오버레이로 사용 */
.music-thumb::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%; /* 밑부분만 그라데이션 */
  background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
  opacity: 0; /* 기본에는 안 보임 */
  pointer-events: none;
  transition: opacity 0.6s ease; /* 열고 닫을 때 자연스럽게 */
}

.music-thumb.active::after {
  opacity: 1; /* 활성화 시 나타남 */
}

/* 배경 이미지 움직임 */
@keyframes thumb-inside {
  0%   { background-position: 50% 50%; background-size: 145%; }
  10%  { background-position: 45% 52%; background-size: 146%; }
  20%  { background-position: 55% 48%; background-size: 147%; }
  30%  { background-position: 48% 53%; background-size: 146%; }
  40%  { background-position: 52% 47%; background-size: 145%; }
  50%  { background-position: 50% 50%; background-size: 147%; }
  60%  { background-position: 47% 51%; background-size: 146%; }
  70%  { background-position: 53% 49%; background-size: 145%; }
  80%  { background-position: 46% 52%; background-size: 146%; }
  90%  { background-position: 54% 48%; background-size: 145%; }
  100% { background-position: 50% 50%; background-size: 145%; }
}

.music-ui {
  position: absolute;
  width: 100%;
  left: 0px;
  top: 0px;
  text-align: center;
  transition: 1s;
  height: 145px;
  display: grid;
  align-items: flex-end;
  grid-template-rows: auto min-content 50px;

}
#player-infos1,
#player-infos2 {
  text-align: center;
    font-size: 11px;
  display: inline-block;
  color: var(--music-text);
}
#play-text {
    display: block;
    height: 15px;
    color: var(--music-text);
}
.music-ui p {
  width:84%;
  margin:0 auto;
}


/* 기본 상태: 제목 숨김 */
#songtitle {
  color: #B3BDB3; /* 글자 안 색상 */
  -webkit-text-stroke:
  font-size: 15px;
  font-family: 'GmarketSansMedium','Pretendard JP Variable';
  font-weight: 800;
  text-align: center;
  overflow: hidden;

  opacity: 0; /* 기본에는 안 보임 */
  transition: opacity 0.6s ease; /* 열고 닫힐 때 부드럽게 */
}

/* 음악 플레이어가 열렸을 때 활성화 */
.music-thumb.active + .music-ui #songtitle {
  opacity: 1; /* 보이도록 */
}

.music_ctl {
  text-align: center;
    margin-top: 2px;
font-size:15px;
    padding: 0px 10px;
    box-sizing: border-box;
-webkit-text-stroke: 1px #555;
}
#player-infos {
  height: 16px;
}
.music-list {
  top: 150px;
  position: absolute;
  text-align: center;
  width: 100%;
  left: 0px;
  height:240px;
  overflow:auto;
  padding:5px;
  box-sizing: border-box;
  transition: 1s;
}
.music-list.active {
  top:230px;
  height:160px;
}
.music-ui.active {
  top: 90px;
}
.listmusic {
    display: block;
    padding: 3px;
    margin: 4px;
    border-radius: 5px;
    color: var(--music-text);
	font-family:'Pretendard JP Variable';
}

.listmusic:hover {
  background: var(--music-point);
  color: var(--music-base);
}

.listmusic.active {
  background: var(--music-point);
  color: var(--music-base);
}

/* 재생 위치 바 설정 */
input[type='range'] {
  background:transparent;
  }
  
  input[type='range']:focus {
    outline: none;
  }
  /* Primero quitamos el estilo por defecto que tiene el input */
  input[type='range'],
  input[type='range']::-webkit-slider-runnable-track,
  input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
  }
  /* Estilo del thumb para webkit */
  input[type=range]::-webkit-slider-thumb {
    background-color: var(--music-point);
    width: 10px;
    height: 10px;
    border: 1px solid var(--music-base);
    border-radius: 100%;
    margin: -3px;

  }
  /* Estilo del thumb para moz */
  input[type=range]::-moz-range-thumb {
    background-color: var(--music-point);
    width: 10px;
    height: 10px;
    border: 1px solid var(--music-base);
    border-radius: 100%;
    margin: -3px;
  }
  /* Estilo para el thum para ms */
  input[type=range]::-ms-thumb {
    background-color: var(--music-point);
    width: 10px;
    height: 10px;
    border: 1px solid var(--music-base);
    border-radius: 100%;
    margin: -3px;
  }
  /* El estilo del track para webkit */
  input[type=range]::-webkit-slider-runnable-track {
    background: var(--music-point);
    height: 3px;
    border-radius:2px;
    margin:0px 7px;
    filter: drop-shadow(0px 0px 2px rgba(6, 17, 29, 0.1))
  }
  
  input[type=range]:focus::-webkit-slider-runnable-track {
    outline: none;
  }
  /* Estilo de track para mox */
  input[type=range]::-moz-range-track {
    background-color: gray;
    height: 3px;
  }
  /* Estilo del track para ms */
  input[type=range]::-ms-track {
    background-color: gray;
    height: 3px;
  }
  
  input[type=range]::-ms-fill-lower {
    background-color:gray;
  }
  
  input[type=range]::-ms-fill-upper {
    background-color: gray;
  } 
  /* 볼륨 바 */
  #volume-window {
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 19px;
    height: 94px;
    background: var(--music-base);
    border-radius: 5px;
    z-index: 2;
    top: 7px;
    right: 13px;
  }
  #YouTube-player-volume {
    rotate: -90deg;
    left: 0;
    top: 0;
    position: relative;
    padding: 0px;
    margin: 0px;
    width: 95px;
    padding: 9px 0px;
  }


