*,
*::before,
*::after{
  box-sizing:border-box
}

html{
  font-family:system-ui,-apple-system,sans-serif;
  -webkit-text-size-adjust:100%
}

body{
  margin:0;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility
}

.player-wrap{
  transform-origin:center;
  padding:clamp(16px,4vw,60px)
}

.player{
  width:450px;
  height:110px;
  display:flex;
  align-items:flex-start;
  background:#000;
  border-radius:15px;
  transform:perspective(1000px);
  transform-style:preserve-3d;
  box-shadow:0 10px 25px rgba(0,0,0,.6);
  transition:box-shadow .35s cubic-bezier(.22,.61,.36,1);
  position:relative
}

.player:hover{
  box-shadow:0 25px 50px rgba(0,0,0,.75),0 0 30px rgba(255,255,255,.1)
}

.player-cover{
  width:80px;
  height:80px;
  margin:10px;
  border-radius:15px;
  object-fit:cover;
  transform:translateZ(40px)
}

.player-meta{
  margin-top:18px;
  transform:translateZ(60px);
  display:flex;
  flex-direction:column;
  gap:2px
}

.player-title{
  color:#fff;
  font-size:18px;
  text-shadow:0 0 10px #fff;
  line-height:1.1
}

.player-artist{
  color:#7f7f7f;
  font-size:15px;
  text-shadow:0 0 6px rgba(255,255,255,.3);
  line-height:1.1
}

.player-right{
  position:absolute;
  top:18px;
  right:15px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px
}

.player-controls{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center
}

.ctrl{
  width:50px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:transparent;
  border:none;
  cursor:pointer;
  position:relative;
  touch-action:manipulation
}

.ctrl::before{
  content:"";
  position:absolute;
  inset:-10px;
}

.ctrl i{
  color:#fff;
  font-size:18px;
  text-shadow:0 0 5px #fff;
  pointer-events:none
}

.player-progress{
  display:flex;
  align-items:center;
  gap:7px;
  user-select:none
}

.player-progress span{
  width:30px;
  color:#bababa;
  font-size:13px;
  user-select:none;
  pointer-events:none
}

.bar{
  width:150px;
  height:4px;
  background:rgba(255,255,255,.2);
  border-radius:50px;
  position:relative;
  overflow:visible;
  cursor:pointer;
  touch-action:manipulation
}

.bar::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-8px;
  bottom:-8px;
}

.progress{
  height:100%;
  background:#fff;
  transform-origin:left;
  transform:scaleX(0);
  box-shadow:0 0 10px #fff;
  border-radius:inherit;
  pointer-events:none
}

@media (max-width:768px){
  .player-wrap{
    padding:clamp(6px,2vw,18px)
  }
}