#player{
  max-width:715px;
  margin:20px auto;
  background:#bd2945;
  color:white;
  border-radius:12px;
}

.mini{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  cursor:pointer;
}

.mini.fixed{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  margin:auto;
  max-width:715px;
  z-index:1000;
}

.mini-play-btn{
  width:40px;
  height:40px;
  border-radius:50%;
  background:rgba(0,0,0,0.2);
  display:flex;
  align-items:center;
  justify-content:center;
}

.mini-play-btn svg{
  width:23px;
  height:23px;
  color:white;
}


.full{ display:none; }

/* Progress */

.progress-area{
  padding:8px 10px;
}

.time-row{
  display:flex;
  justify-content:space-between;
  font-size:12px;
  opacity:.8;
  margin-bottom:4px;
}

.progress-wrapper{
  position:relative;
  width:100%;
  cursor:pointer;
}

progress{
  width:100%;
  height:10px;
  border:none;
  background:#f5dfe3;
}

progress::-webkit-progress-value{ background:#E4700F; }
progress::-moz-progress-bar{ background:#E4700F; }

.progress-dot{
  position:absolute;
  top:calc(50% + 3px);
  transform:translate(-50%, -50%);
  width:14px;
  height:14px;
  background:#E4700F;
  border:2px solid #fff;
  border-radius:50%;
  box-shadow:0 0 6px rgba(228,112,15,0.6);
  pointer-events:none;
}

/* Controls */

.main-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
}

.center{
  flex:1;
  display:flex;
  justify-content:center;
}

.transport{
  display:flex;
  align-items:center;
  gap:10px;
}

.right{
  display:flex;
  gap:10px;
  margin-left:auto;
}

#player .amplitude-play-pause{
all: unset;
  width:44px;
  height:44px;
  min-width:44px;
  border-radius:50% !important;
  background:rgba(0,0,0,0.2) !important;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: none !important;
 appearance:none !important;
  -webkit-appearance:none !important;

}

.amplitude-paused::before{
  content:"▶";
  font-size:26px;
  transform:translateX(2px); 
}

.amplitude-playing::before{
  content:"❚❚";
  font-size:22px;
}

.skip{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;

  min-width:50px;
  height:36px;

  background:rgba(0,0,0,0.2);
  border-radius:6px;

  font-weight:600;
  font-size:14px;
  cursor:pointer;
}

.skip-icon{
  font-size:20px;
  padding-bottom: 6px;
}

.skip-text{
  font-size:13px;
}

button{
  background:rgba(0,0,0,0.2);
  border:none;
  color:white;
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
}

.speed-menu,
.volume-menu{
  position:fixed;
  z-index:999999;
  background:white;
  color:black;
  border-radius:8px;
  display:none;
  box-shadow:0 6px 16px rgba(0,0,0,.3);
}

.speed-menu div{
  padding:6px 10px;
  cursor:pointer;
}

.speed-menu div:hover{
  background:#eee;
}

.volume-menu{
  padding:10px;
}

.volume-menu input{
  width:120px;
}

#volume-btn{
  display:flex;
  align-items:center;
  justify-content:center;
}

#volume-btn svg{
  width:23px;
  height:23px;
  color:white;
}


#vol{#volwebkit-appearance: none;
  width:120px;
  height:4px;
  background:#ccc;
  border-radius:2px;
  outline:none;
}

/* track */
#vol::-webkit-slider-runnable-track{
  height:4px;
  background:#ccc;
  border-radius:2px;
}

/* thumb */
#vol::-webkit-slider-thumb{
  -webkit-appearance: none;

  width:14px;
  height:14px;
  border-radius:50%;

  background:#E4700F;

  margin-top:-5px; /* ✅ tärkeä: keskittää thumbin */
}

/* Firefox */
#vol::-moz-range-track{
  height:4px;
  background:#ccc;
}

#vol::-moz-range-thumb{
  width:14px;
  height:14px;
  border-radius:50%;
  background:#E4700F;
  border:none;
}

#vol{
  padding:0;
}

.volume-menu{
  padding-left: 10px !important;
  width:140px;
}
