/* play-marks.css
   The play and pause pictures, taken from the Astrohead logo.
   The shapes are vector drawings used as masks, so the color is just the button's text color: blue for play,
   white for pause, orange on the row that is playing. The text symbols the scripts put in the buttons are hidden
   and kept for screen readers.
   To use PNG pictures instead, add the class marks-png to <body>.
   Used by: .audio-play (small player), .track-play (audio rows), .now-btn.main (now playing bar). */

:root {
  --mark-wedge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 175 156'%3E%3Cpath d='M173.0,85.5 23.0,155.5 21.7,154.0 19.0,149.0 11.5,131.0 10.0,128.0 8.8,128.0 9.7,127.0 9.5,125.0 7.5,119.0 5.8,118.0 6.8,117.0 6.0,114.0 4.9,114.0 5.8,113.0 4.5,105.0 3.0,104.0 3.7,103.0 3.5,99.0 1.9,98.0 3.0,97.0 1.7,85.0 2.1,67.0 2.0,66.1 1.0,67.0 0.9,66.0 2.5,65.0 3.0,58.0 1.8,57.0 3.5,56.0 3.7,52.0 3.0,51.0 4.5,49.0 4.7,47.0 3.8,45.0 5.0,46.0 5.5,45.0 5.7,42.0 4.8,41.0 6.5,40.0 6.8,38.0 5.9,37.0 7.0,37.0 9.5,30.0 8.8,27.0 10.0,27.0 16.5,12.0 15.9,10.0 17.0,10.0 17.5,9.0 16.9,8.0 18.5,7.0 17.9,6.0 19.0,6.0 22.0,0.6 24.0,0.7 44.0,10.5 46.0,10.0 46.0,11.0 59.0,17.5 61.0,17.7 91.0,32.5 93.0,32.0 93.0,33.0 106.0,39.5 173.5,71.0 174.3,81.0Z'/%3E%3C/svg%3E");  /* the triangle from the logo */
  --mark-full: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 406 357'%3E%3Cpath d='M42.0,356.4 39.6,355.0 27.7,328.0 12.7,283.0 12.4,281.0 14.0,279.7 27.0,274.5 27.5,273.0 18.7,258.0 8.8,233.0 2.7,207.0 0.5,179.0 1.7,155.0 5.7,131.0 14.5,104.0 24.7,84.0 24.0,82.5 11.8,77.0 23.8,38.0 40.0,0.6 96.0,27.5 113.0,34.3 155.0,55.5 164.0,59.5 166.0,59.0 175.2,65.0 162.5,95.0 157.5,113.0 158.0,116.0 155.5,120.0 152.0,141.0 97.0,115.5 89.5,132.0 84.5,148.0 81.5,170.0 81.5,187.0 83.1,188.0 81.5,189.0 83.5,203.0 89.5,225.0 96.5,241.0 98.0,241.5 106.0,236.7 152.0,217.7 152.5,222.0 154.1,223.0 153.5,228.0 155.0,229.0 154.5,233.0 156.2,234.0 155.5,238.0 157.1,239.0 156.5,243.0 160.5,258.0 174.4,293.0ZM404.0,186.5 254.0,256.5 252.7,255.0 250.0,250.0 242.5,232.0 241.0,229.0 239.8,229.0 240.7,228.0 240.5,226.0 238.5,220.0 236.8,219.0 237.8,218.0 237.0,215.0 235.9,215.0 236.8,214.0 235.5,206.0 234.0,205.0 234.7,204.0 234.5,200.0 232.9,199.0 234.0,198.0 232.7,186.0 233.1,168.0 233.0,167.1 232.0,168.0 231.9,167.0 233.5,166.0 234.0,159.0 232.8,158.0 234.5,157.0 234.7,153.0 234.0,152.0 235.5,150.0 235.7,148.0 234.8,146.0 236.0,147.0 236.5,146.0 236.7,143.0 235.8,142.0 237.5,141.0 237.8,139.0 236.9,138.0 238.0,138.0 240.5,131.0 239.8,128.0 241.0,128.0 247.5,113.0 246.9,111.0 248.0,111.0 248.5,110.0 247.9,109.0 249.5,108.0 248.9,107.0 250.0,107.0 253.0,101.6 255.0,101.7 275.0,111.5 277.0,111.0 277.0,112.0 290.0,118.5 292.0,118.7 322.0,133.5 324.0,133.0 324.0,134.0 337.0,140.5 404.5,172.0 405.3,182.0Z'/%3E%3C/svg%3E");  /* the logo mark: a curved band and the triangle */
  --mark-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0,0H6.4V16H0ZM9.6,0H16V16H9.6Z'/%3E%3C/svg%3E");  /* two bars */
  --png-wedge: url("../images/play-wedge.png");
  --png-full: url("../images/play-mark.png");
  --png-pause: url("../images/play-pause.png");
}

.audio-play, .track-play, .now-btn.main { position: relative; font-size: 0; }
.audio-play::before, .track-play::before, .now-btn.main::before { content: ""; position: absolute; left: 50%; top: 50%; width: var(--mark-w, 12px); height: var(--mark-h, 12px); transform: translate(calc(-50% + var(--mark-nudge, 0px)), -50%); background-color: currentColor; -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }

/* Sizes: the triangle on the small buttons and the full mark on the big one. Pause is two bars everywhere. */
.audio-play { --mark: var(--mark-wedge); --png: var(--png-wedge); --mark-w: 11px; --mark-h: 10px; --mark-nudge: 1px; }
.track-play { --mark: var(--mark-wedge); --png: var(--png-wedge); --mark-w: 12px; --mark-h: 11px; --mark-nudge: 1px; }
.now-btn.main { --mark: var(--mark-full); --png: var(--png-full); --mark-w: 27px; --mark-h: 24px; --mark-nudge: 2px; } /* the band is heavier on the left, so the mark is nudged right to look centered */
.audio-play[title="Pause"], .track-play[data-state="pause"], .now-btn.main[data-state="pause"] { --mark: var(--mark-pause); --png: var(--png-pause); --mark-nudge: 0px; }
.audio-play[title="Pause"] { --mark-w: 9px; --mark-h: 9px; color: #fff; }
.track-play[data-state="pause"] { --mark-w: 10px; --mark-h: 10px; }
.now-btn.main[data-state="pause"] { --mark-w: 16px; --mark-h: 16px; color: #fff; }

/* PNG pictures, when marks-png is on <body> */
.marks-png .audio-play::before, .marks-png .track-play::before, .marks-png .now-btn.main::before { background: var(--png) center / contain no-repeat; -webkit-mask: none; mask: none; }
