:root {
  --size: 340px;          
  --speed: 120s;           
  --player-h: 20px;      
  --player-w: 300px;      
  --radius: calc((var(--size) * 0.577)/2 + var(--player-h)/2);
}

header{
  line-height: 1.5;
  padding: 10px;
}

body {
  margin: 0;
  height: 100vh;
  display: grid;
  background: #f4f6fb;
  font-family: sans-serif;
}

body p{
  margin: 0;
}

.triangle {
  position: fixed;
  top: 50%; left: 50%;
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);
}

.spin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-origin: 50% 50%;
  animation: spin var(--speed) linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.edge {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--player-w);
  height: var(--player-h);
  transform-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.e1 { transform: translate(-50%,-50%) rotate(0deg) translateY(calc(-1 * var(--radius))); }
.e2 { transform: translate(-50%,-50%) rotate(120deg) translateY(calc(-1 * var(--radius))); }
.e3 { transform: translate(-50%,-50%) rotate(240deg) translateY(calc(-1 * var(--radius))); }

.player {
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.play {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.play__svg{
  display: flex;
  justify-content: center;
  align-items: center;
}

svg{
  height: 14px;
  margin-left: 1px;
}

.playicon{
  margin-left: 2px;
}

.play:not(.playing) .pauseicon{
  display: none
}

.play.playing .playicon{
  display: none
}

.play > span{
  margin-left: 1px;
  font-size: 70%;
}

.seek {
  flex: 1;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}
.seek .thumb {
  position: absolute;
  top: -3px;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111;
  transition: left 0.1s linear;
}

.time {
  min-width: 60px;
  text-align: right;
  font-family: monospace;
}

.volume {
  width: 70px;
  margin-left: auto;
}

  .player {
    opacity: 0.8;
  }

@media(min-width: 500px){
  :root {
    --size: 395px;          
    --speed: 120s;           
    --player-h: 20px;      
    --player-w: 360px;      
    --radius: calc((var(--size) * 0.577)/2 + var(--player-h)/2);
  }

  body{
      place-items: center;
  }
  header{
    text-align: center;
  }

}
