/* Radio players (the hand-drawn audio players).
   Used on Pukka Broadcast, Pukka Social, A Year of OS and Smint. Behaviour lives in js/audio-player.js.

   To add a player to a page, drop this where you want it (and make sure the page loads this file and js/audio-player.js):
     <div class="ahp" data-src="https://example.com/your-file.mp3" data-label="Client: Ad name"></div>

   Players next to each other in the HTML get grouped into a row: three ads are three columns,
   two are halves, one sits on its own at about half width. On phones they stack.
*/
.ahp-set {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
  margin-bottom: 26px;
}
.ahp-set.n2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ahp-set.n1 {
  grid-template-columns: minmax(0, 460px);
}
.ahp {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px 15px 16px;
  min-width: 0;
  font-family: "Space Mono", "Courier New", monospace;
  color: currentColor;
  box-sizing: border-box;
}
.ahp-box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.ahp-box-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ahp-btn {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  color: currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.ahp-btn:hover {
  transform: scale(1.06);
}
.ahp-btn:focus-visible {
  outline: 2px dashed currentColor;
  outline-offset: 3px;
  border-radius: 50%;
}
.ahp-btn svg {
  width: 46px;
  height: 46px;
  overflow: visible;
}
.ahp-main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.ahp-label {
  font-family: "Hand 1 Latin", "Courier New", monospace;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ahp-wave {
  display: block;
  width: 100%;
  height: 30px;
  overflow: visible;
  cursor: pointer;
}
.ahp-wave-track,
.ahp-wave-fill {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.ahp-wave-track {
  opacity: 0.22;
}
.ahp-time {
  font-size: 11px;
  line-height: 1;
  opacity: 0.6;
  margin-top: 5px;
  letter-spacing: 0.04em;
  min-height: 11px;
}
@media (max-width: 767px) {
  .ahp-set,
  .ahp-set.n2,
  .ahp-set.n1 {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}
