# Music player (C 058)

Category: Cards  
Tags: music, player, media, dark, progress, controls  
Page: https://designforai.dev/snippet/card-058

## Prompt

Build a 260px music player card on #1a1a1a with 20px radius, 18px padding and a deep shadow. Album art is a 200px block with 14px radius, 135deg gradient #f43f5e to #8b5cf6 to #0ea5e9, and a pink tinted shadow. Below: 16px bold song title, 13px #9ca3af artist, a 4px progress track (#333) filled 36% white, a time row "1:24 / 3:52" in 11px #6b7280, and centered controls: two text glyph buttons in #d1d5db and a 48px white circular play button with a black triangle that scales to 1.08 on hover.

## HTML

```html
<article class="card-058">
  <div class="card-058__art"></div>
  <div class="card-058__info"><b>Quiet Hours</b><span>Lo Lantern</span></div>
  <div class="card-058__track"><i></i></div>
  <div class="card-058__time"><span>1:24</span><span>3:52</span></div>
  <div class="card-058__ctrl"><button aria-label="Previous">◀◀</button><button class="card-058__play" aria-label="Play">▶</button><button aria-label="Next">▶▶</button></div>
</article>
```

## CSS

```css
.card-058 {
  width: 260px;
  padding: 18px;
  background: #1a1a1a;
  border-radius: 20px;
  font-family: system-ui,sans-serif;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,.4)
}
.card-058__art {
  height: 200px;
  border-radius: 14px;
  background: linear-gradient(135deg,#f43f5e,#8b5cf6 60%,#0ea5e9);
  box-shadow: 0 10px 24px rgba(244,63,94,.3)
}
.card-058__info {
  display: flex;
  flex-direction: column;
  margin: 16px 0 12px
}
.card-058 b {
  font-size: 16px
}
.card-058__info span {
  font-size: 13px;
  color: #9ca3af
}
.card-058__track {
  height: 4px;
  border-radius: 2px;
  background: #333;
  overflow: hidden
}
.card-058__track i {
  display: block;
  width: 36%;
  height: 100%;
  background: #fff;
  border-radius: 2px
}
.card-058__time {
  display: flex;
  justify-content: space-between;
  margin: 6px 0 14px;
  font-size: 11px;
  color: #6b7280
}
.card-058__ctrl {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px
}
.card-058 button {
  border: 0;
  background: none;
  color: #d1d5db;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: -.15em
}
.card-058 button:hover {
  color: #fff
}
.card-058 .card-058__play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 18px;
  letter-spacing: 0;
  padding-left: 3px;
  transition: transform .15s
}
.card-058 .card-058__play:hover {
  transform: scale(1.08);
  color: #111
}
.card-058 :is(a,button,input,select,textarea):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
```
