/* css/bottom_player.css */

/* css/my_player.css */
#scrollingContent{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-self: center;
  padding-left:0px;
  gap:8px;
}
#info_container{
  height:var(--default-player);
  display:flex;
  flex-direction:column;
  white-space: nowrap;
  font-size: 2.2dvh;
  justify-content:center;
  align-items: center;
  max-width: 450px;
  grid-column: 1 / 3;
  justify-self: end;
  text-align: center;
  padding-right:60px;
}
.my_player{
  position: relative;
  grid-row: 4 / 5;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  width: 100vw;
  height: var(--default-player);
  align-items: center;
  background: transparent;
  background-color: white;
  z-index: 20;
  gap: 10px;
  box-shadow: 0 0 40px rgba(255,255,255);
}
.controls_container{
  overflow: visible;
  position: relative;
  z-index: 1;
  display:flex;
  flex:0 0 25vw;
  flex-direction:column;
  justify-content:space-between;
  height:min(5.5dvh,50px);
  gap:50px;
}
#now_playing_title{
  font-size: 22px;
  font-size: 2.45dvh;
}
#scrollingContent.scrolling {
  display: inline-flex;
  white-space: nowrap;
  padding-right:60px;
  padding-left:60px;
}
#trackTitle {
  height: calc(var(--default-player)/2);
  display: flex;
  justify-content: start;
  align-items: start;
  font-size: 1.5rem;
  font-size: 2.8dvh;
  padding-right: 0px;
}
#info1{
  display: none;
  align-items: center;
  font-size: 1.5rem;
  font-size: 2.8dvh;
}
@keyframes scrollLeft {
  0% {
    transform: translateX(calc(100% - 60px));
  }
  100% {
    transform: translateX(calc(-100% + 60px));
  }
}
.player_controls {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
#ppn{
  display:flex;
  flex-direction:row;
  justify-content: space-evenly;
  align-items: center;
  gap:12px;
}
.player_info{
  height: var(--default-player);
  display:flex;
  flex-direction:row;
  justify-content: start;
  align-items: center;
  gap:5px;
  color:grey;
  padding: 0px;
  width:100%;
}
#add_to_list2, #add_to_list2_cont {
  display: flex;
  width: min(5.5dvh,50px);
  height: min(5.5dvh,50px);
  position: relative;
  cursor: pointer;
}
#add_to_list2_cont {
  justify-content: center;
  align-items: center;
}
#add_to_list2{
  display:none;
}
#add_to_list2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/icon/small/add.svg') no-repeat center center;
  background-size: 45%;
  opacity: 1;
  transform: rotate(0deg);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  pointer-events: none;
}
#add_to_list2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/icon/small/tick-circle.svg') no-repeat center center;
  background-size: 55%;
  opacity: 0;
  transform: rotate(-180deg);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  pointer-events: none;
}
#add_to_list2.added::before {
  opacity: 0;
  transform: rotate(180deg);
}
#add_to_list2.added::after {
  opacity: 1;
  transform: rotate(0deg);
}
#volume_percentage{
  color:var(--our_blue);
  color: black;
  display: none;
}
#volume_cont{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(5.5dvh,50px);
  height: min(5.5dvh,50px);
  grid-column: 5 / 6;
}
#volume_cont_replacement{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(5.5dvh,50px);
  height: min(5.5dvh,50px);
}
#volume {
  position: relative;
  display: flex;
  width: 40px;
  height: 40px;
  background: url('/icon/small/pl_icons/speaker.svg') no-repeat center center;
  background-size: 55%;
  cursor: pointer;
  padding: 10px 10px;
  background-color: transparent;
  overflow: visible;
  z-index: 2;
}
#volume.low {
  background: url('/icon/small/pl_icons/volume_low2.svg') no-repeat center center;
  background-size: 55%;
}
#volume.mute {
  background: url('/icon/small/pl_icons/volume_mute3.svg') no-repeat center center;
  background-size: 55%;
}
#volume_expanded {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 3;
  height:40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform-origin: top left;
  transform: rotate(-90deg);
}
#volume_container {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--secondary-bg);
  background: transparent;
  height: 40px;
  min-width: 70px;
  justify-content: center;
  text-align: center;
}
#volume_bar {
  width: 100px;
  height: 8px;
  appearance: none;
  background: white;
  border-radius: 5px;
  outline: none;
  border:1px solid var(--our_blue_075opac);
  cursor: pointer;
}
#volume_bar::-webkit-slider-runnable-track {
  height: 6px;
  background: #fff;
  border-radius: 5px;
}
#volume_bar::-moz-range-track {
  height: 6px;
  background: #fff;
  border-radius: 5px;
}
#volume_bar::-webkit-slider-thumb {
  appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--our_blue);
  background: black;
  cursor: pointer;
  margin-top: -1px;
}
#volume_bar::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--our_blue);
  background: black;
  cursor: pointer;
}
#volume:hover #volume_expanded {
  opacity: 1;
  pointer-events: auto;
}
.player_progress {
  width: 100%;
  display:flex;
  flex-direction:row;
  justify-content:center;
  align-items:center;
  padding-top:0px;
}
.timeDisplay{
  flex:1;
  width: 100%;
  display:flex;
  gap:20px;
  text-align: center;
  justify-content:space-between;
}
.timeDisplay1, .timeDisplay2{
  padding:0 5px;
  color:var(--title-text);
  font-size: min(1.8dvh,14px);
}
#progressBar {
  --player-progress-percent: 0%;
  --player-progress-filled: #50505090;
  --player-progress-empty: #50505030;
  width: 100%;
  height: var(--progress-bar-size);
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(
    to right,
    var(--player-progress-filled) 0%,
    var(--player-progress-filled) var(--player-progress-percent),
    var(--player-progress-empty) var(--player-progress-percent),
    var(--player-progress-empty) 100%
  );
  border-radius: var(--progress-bar-size);
  accent-color: grey;
  cursor: pointer;
}
#progressBar::-webkit-slider-thumb {
  position: relative;
  -webkit-appearance: none;
  width: calc(var(--progress-bar-size) + 2px);
  height: calc(var(--progress-bar-size) + min(22px,2.2dvh));
  background: radial-gradient(
    circle at center,
    grey 0%,
    grey calc((var(--progress-bar-size) ) / 2),
    transparent calc((var(--progress-bar-size) ) / 2 + 1px)
  );
  border-radius: 0%;
  cursor: pointer;
  box-shadow: 0 0 0 0 grey;
  opacity: 0;
}
#progressBar::-moz-range-thumb {
  width: var(--progress-thumb-hitbox);
  height: var(--progress-thumb-hitbox);
  margin-top: 10px;
  margin-bottom: 10px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
#progressBar::-ms-thumb {
  width: var(--progress-bar-size);
  height: var(--progress-bar-size);
  background: grey;
  border-radius: 50%;
  cursor: pointer;
}
@media (max-width: 940px) {
  #volume_cont_replacement{
    display: flex;
    opacity: 0;
  }
  #scrollingContent{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
    width:100vw;
  }
  #add_to_list2{
    width: 40px;
    height: 40px;
    background-size: contain;
  }
  #trackTitle {
    color:var(--title-text);
    display: flex;
    align-items: center;
    padding-right: 0px;
  }
  #volume {
    display:none;
  }
  .ios-pwa{
    display: none;
    width:100vw;
    min-height: 15px;
  }
  .my_player{
    position: relative;
    display:flex;
    width:100dvw;
    height:unset;
    flex-direction: column;
    justify-content:center;
    align-items:center;
    z-index: 20;
    gap:5px;
    color:var(--title-text);
  }
  #info_container{
    width:100vw;
    height:15px;
    flex:0 0 15px;
    display:flex;
    flex-direction:column;
    white-space: nowrap;
    font-size: 1.30rem;
    justify-content:center;
    align-items: start;
    padding-right: unset;
  }
  #now_playing_title{
    display: none;
  }
  #info1{
    display: none;
    align-items: center;
    font-size: 0.9rem;
  }
  .controls_container{
    overflow: visible;
    position: relative;
    z-index: 1;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    max-height:50px;
    width:100vw;
    gap:5px;
  }
  .player_progress {
    font-size:0.7rem;
    padding:0px 0px 6px 0px;
  }
  #trackTitle {
    height: 15px;
    display: flex;
    justify-content: start;
    align-items: start;
    font-size: 0.9rem;
    padding-right: 0px;
  }
  #volume_cont, #add_to_list2_cont{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
  }
  #volume_cont{
    display: none;
  }
  #ppn{
    display:flex;
    height: 40px;
    flex-direction:row;
    justify-content: space-evenly;
    align-items: center;
    gap:12px;
  }
  .player_info{
    height:20px;
    width:100vw;
    display:flex;
    flex:0 0 20px;
    flex-direction:row;
    justify-content: center;
    align-items: center;
    gap:5px;
    color:grey;
    padding: 0px;
  }
}
@media (max-width: 768px) {
  #progressBar {
    height: 4px;
    border-radius: 2px;
  }
}
