:root {
  --bg: #f1f1f1;
  --card: #eeeeee;
  --text: #1d1d1f;
  --muted: #6b6b6b;
  --accent: #f3a46b;
  --accent2: #e24a4a;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  --radius: 16px;
}

.audio-custom .wrap {
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* PLAYER CARD */
.audio-custom .player {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 13px 2px 10px 0px;
  display: grid;
  grid-template-columns: 55px 1fr 28px;
  column-gap: 10px;
  align-items: start;
}
.audio-custom .cover {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: #ddd;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.audio-custom .cover img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  display: block;
}
.audio-custom .meta {
  min-width: 0;
  padding-top: 2px;
}
.audio-custom .title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-custom .artist {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-custom .wave {
  margin-top: 6px;
  justify-self: end;
  width: 24px;
  height: 24px;
  opacity: 0.85;
}

/* timeline row */
.audio-custom .timeline {
  grid-column: 2 / 4;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: 10px;
}
.audio-custom .time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #2a2a2a;
  opacity: 0.9;
}
.audio-custom .range {
  position: relative;
  height: 16px;
  display: flex;
  align-items: center;
}
.audio-custom input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) 0%,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.15) 100%
  );
  outline: none;
}
.audio-custom input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent2);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.audio-custom input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent2);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* controls row */
.audio-custom .controls {
  grid-column: 1 / 4;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.audio-custom .left-icons,
.right-icons {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 0 6px;
}
.audio-custom .center-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.audio-custom .btn {
  border: none;
  background: transparent;
  padding: 6px;
  border-radius: 10px;
  cursor: pointer;
  color: #111;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.audio-custom .btn:hover {
  background: rgba(0, 0, 0, 0.06);
}
.audio-custom .btn.active {
  color: var(--accent2);
  opacity: 1;
}
.audio-custom .btn svg {
  width: 22px;
  height: 22px;
}

.audio-custom .play {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}
.audio-custom .play svg {
  width: 22px;
  height: 22px;
}
.audio-custom .play:active {
  transform: translateY(1px);
}

.audio-custom .vol-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.audio-custom .vol-range {
  width: 120px;
  max-width: 28vw;
}

/* Playlist */
.audio-custom .list {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.audio-custom .item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  margin-bottom: 6px;
}
.audio-custom .item:last-child {
  border-bottom: none;
}
.audio-custom .thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #ddd;
}
.audio-custom .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.audio-custom .it-meta {
  min-width: 0;
}
.audio-custom .it-title {
  font-weight: 800;
  font-size: 18px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-custom .it-artist {
  margin: 4px 0 0 0;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-custom .it-dur {
  justify-self: end;
  color: #444;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.audio-custom .item.active {
  background: rgba(243, 164, 107, 0.18);
}
