.waveshelf-player {
  --waveshelf-bg: #ffffff;
  --waveshelf-surface: #ffffff;
  --waveshelf-surface-soft: #f7f7f7;
  --waveshelf-ink: #171717;
  --waveshelf-muted: #6c6862;
  --waveshelf-line: rgba(23, 23, 23, .11);
  --waveshelf-line-strong: rgba(23, 23, 23, .2);
  --waveshelf-yellow: #f2c94c;
  --waveshelf-shadow: 0 18px 46px rgba(23, 23, 23, .08);
  --waveshelf-radius: 16px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 130px;
  background: var(--waveshelf-bg);
  color: var(--waveshelf-ink);
  font-family: inherit;
  box-sizing: border-box;
}

body.soundroll-design-refresh .wp-block-post-content > .waveshelf-player,
body.soundroll-design-refresh .entry-content > .waveshelf-player {
  width: min(1180px, calc(100vw - 100px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.waveshelf-player *,
.waveshelf-player *::before,
.waveshelf-player *::after {
  box-sizing: border-box;
}

.waveshelf-player button,
.waveshelf-player input {
  font: inherit;
}

.waveshelf-player a {
  color: inherit;
}

.waveshelf-player .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

.waveshelf-player button,
.waveshelf-player [role="slider"],
.waveshelf-player a {
  -webkit-tap-highlight-color: transparent;
}

.waveshelf-player button:focus,
.waveshelf-player a:focus,
.waveshelf-player input:focus,
.waveshelf-player [role="slider"]:focus {
  outline: 0;
  box-shadow: none;
}

.waveshelf-player button:focus-visible,
.waveshelf-player a:focus-visible,
.waveshelf-player input:focus-visible,
.waveshelf-player [role="slider"]:focus-visible {
  outline: 2px solid var(--waveshelf-yellow);
  outline-offset: 3px;
}

.waveshelf-player__hero {
  margin-bottom: 28px;
}

.waveshelf-player__kicker {
  margin: 0 0 12px;
  color: #4a9f1f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.waveshelf-player__hero h2 {
  margin: 0;
  max-width: 780px;
  color: var(--waveshelf-ink);
  font-size: clamp(42px, 7vw, 82px);
  line-height: .94;
  letter-spacing: -.065em;
  font-weight: 900;
}

.waveshelf-player__toolbar {
  display: none;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.waveshelf-player__search {
  position: relative;
  flex: 0 1 390px;
  display: flex;
  align-items: center;
}

.waveshelf-player__search svg {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--waveshelf-muted);
  stroke-width: 1.8;
  pointer-events: none;
}

.waveshelf-player__search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--waveshelf-line);
  border-radius: 12px;
  padding: 0 48px 0 43px;
  background: var(--waveshelf-surface);
  color: var(--waveshelf-ink);
  transition: border-color .16s ease, background .16s ease;
}

.waveshelf-player__search input:hover,
.waveshelf-player__search input:focus {
  border-color: var(--waveshelf-line-strong);
  background: var(--waveshelf-bg);
}

.waveshelf-player__search kbd {
  position: absolute;
  right: 12px;
  min-width: 22px;
  padding: 1px 6px;
  border: 1px solid var(--waveshelf-line);
  border-radius: 6px;
  color: var(--waveshelf-muted);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

.waveshelf-catalog-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.waveshelf-filter-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 10px;
  scrollbar-gutter: stable;
}

.admin-bar .waveshelf-filter-sidebar {
  top: 128px;
  max-height: calc(100vh - 144px);
}

.waveshelf-filter-sidebar__header {
  display: flex;
  align-items: center;
  margin: 0 0 30px;
  color: var(--waveshelf-ink);
}

.waveshelf-filter-sidebar__header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.waveshelf-filter-list {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 3px;
  scrollbar-width: none;
}

.waveshelf-filter-sidebar .waveshelf-filter-list {
  display: block;
  overflow: visible;
  padding: 0;
}

.waveshelf-filter-list::-webkit-scrollbar {
  display: none;
}

.waveshelf-filter-button,
.waveshelf-clear-filters {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--waveshelf-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.waveshelf-filter-group {
  border-top: 1px solid rgba(23, 23, 23, .22);
  padding: 18px 0;
}

.waveshelf-filter-group h4 {
  margin: 0;
}

.waveshelf-player .waveshelf-filter-heading {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--waveshelf-ink);
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
}

.waveshelf-player .waveshelf-filter-heading::after {
  content: ">";
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  transition: transform .16s ease;
}

.waveshelf-player .waveshelf-filter-heading[aria-expanded="true"]::after {
  transform: rotate(90deg);
}

.waveshelf-player .waveshelf-filter-heading:focus,
.waveshelf-player .waveshelf-filter-heading:active {
  outline: 0 !important;
  box-shadow: none !important;
}

.waveshelf-filter-options {
  padding-top: 14px;
}

.waveshelf-filter-option {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 13px 0;
  color: var(--waveshelf-ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
}

.waveshelf-filter-option input {
  appearance: none;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid rgba(23, 23, 23, .38);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.waveshelf-filter-option input:checked {
  border-color: var(--waveshelf-ink);
  background:
    linear-gradient(45deg, transparent 54%, var(--waveshelf-ink) 55% 64%, transparent 65%) 5px 2px / 14px 15px no-repeat,
    linear-gradient(-45deg, transparent 54%, var(--waveshelf-ink) 55% 64%, transparent 65%) 4px 7px / 9px 10px no-repeat;
}

.waveshelf-filter-button {
  padding: 9px 13px;
}

.waveshelf-filter-button[aria-pressed="true"] {
  background: #171717;
  color: #fff;
}

.waveshelf-player__summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 28px;
  margin-bottom: 14px;
  color: var(--waveshelf-muted);
  font-size: 13px;
  font-weight: 700;
}

.waveshelf-sort-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  gap: 8px;
  color: var(--waveshelf-muted);
  font-size: 13px;
  font-weight: 800;
}

.waveshelf-sort-control select {
  appearance: none;
  min-width: 126px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--waveshelf-ink);
  cursor: pointer;
  padding: 4px 20px 4px 4px;
  font: inherit;
  font-weight: 900;
}

.waveshelf-sort-control select:focus,
.waveshelf-sort-control select:active {
  outline: 0 !important;
  box-shadow: none !important;
}

.waveshelf-sort-direction {
  appearance: none;
  min-width: 32px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--waveshelf-ink);
  cursor: pointer;
  padding: 4px;
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.waveshelf-sort-direction:focus,
.waveshelf-sort-direction:active {
  outline: 0 !important;
  box-shadow: none !important;
}

.waveshelf-track-count {
  display: none;
}

.waveshelf-player .waveshelf-clear-filters {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  color: var(--waveshelf-ink);
  font-size: 13px;
  font-weight: 900;
}

.waveshelf-player .waveshelf-clear-filters span {
  display: inline-block;
  font-size: 28px;
  font-weight: 350;
  line-height: .65;
}

.waveshelf-track-list {
  display: grid;
  gap: 12px;
}

.waveshelf-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  color: var(--waveshelf-muted);
  font-size: 13px;
  font-weight: 800;
}

.waveshelf-pagination[hidden] {
  display: none;
}

.waveshelf-page-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--waveshelf-ink);
  cursor: pointer;
  min-width: 24px;
  min-height: 24px;
  padding: 0 4px;
  font: inherit;
  font-weight: 900;
}

.waveshelf-page-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.waveshelf-page-number.is-current {
  color: #171717;
  background: #f2c94c;
}

.waveshelf-page-ellipsis {
  color: var(--waveshelf-muted);
  padding: 0 2px;
}

.waveshelf-page-button:disabled {
  color: var(--waveshelf-muted);
  cursor: default;
  opacity: .45;
}

.waveshelf-page-button:focus,
.waveshelf-page-button:active {
  outline: 0 !important;
  box-shadow: none !important;
}

.waveshelf-track-row {
  display: grid;
  grid-template-columns: 44px minmax(160px, 245px) minmax(220px, 1fr) 142px 88px;
  gap: 16px;
  align-items: center;
  min-height: 84px;
  padding: 14px 16px;
  border: 1px solid var(--waveshelf-line);
  border-radius: var(--waveshelf-radius);
  background: var(--waveshelf-surface);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.waveshelf-track-row:hover,
.waveshelf-track-row.is-active {
  border-color: var(--waveshelf-line-strong);
  box-shadow: 0 12px 34px rgba(23, 23, 23, .07);
}

.waveshelf-track-row.is-active {
  transform: translateY(-1px);
}

.waveshelf-icon-button {
  appearance: none;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--waveshelf-ink);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease, color .14s ease, transform .08s ease;
}

.waveshelf-icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.waveshelf-icon-button svg.waveshelf-fill {
  fill: currentColor;
  stroke: none;
}

.waveshelf-row-play,
.waveshelf-global-play-button {
  border: 1px solid rgba(23, 23, 23, .28);
  background: transparent;
}

.waveshelf-row-play:hover,
.waveshelf-global-play-button:hover {
  border-color: rgba(23, 23, 23, .48);
  background: rgba(23, 23, 23, .05);
}

.waveshelf-row-play:active,
.waveshelf-global-play-button:active {
  transform: scale(.94);
}

.waveshelf-row-play[aria-pressed="true"],
.waveshelf-global-play-button[aria-pressed="true"] {
  border-color: rgba(23, 23, 23, .48);
  background: rgba(23, 23, 23, .06);
  color: var(--waveshelf-ink);
}

.waveshelf-row-play.is-loading,
.waveshelf-global-play-button.is-loading {
  border-color: rgba(23, 23, 23, .36);
  background: rgba(23, 23, 23, .06);
}

.waveshelf-row-play svg,
.waveshelf-global-play-button svg {
  width: 17px;
  height: 17px;
}

.waveshelf-track-copy {
  min-width: 0;
}

.waveshelf-track-title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--waveshelf-ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waveshelf-track-subtitle {
  display: none;
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: var(--waveshelf-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waveshelf-waveform-shell {
  position: relative;
  height: 54px;
  min-width: 0;
  cursor: pointer;
}

.waveshelf-waveform-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.waveshelf-seek-tooltip {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  border-radius: 999px;
  padding: 3px 7px;
  background: #171717;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

.waveshelf-seek-tooltip.is-visible {
  display: block;
}

.waveshelf-track-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  text-align: right;
}

.waveshelf-track-details span {
  display: grid;
  gap: 2px;
}

.waveshelf-track-details strong {
  font-size: 14px;
  font-weight: 900;
}

.waveshelf-track-details small {
  color: var(--waveshelf-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.waveshelf-track-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.waveshelf-download-button svg {
  width: 21px;
  height: 21px;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.waveshelf-global-download-button svg {
  width: 21px;
  height: 21px;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.waveshelf-empty-state,
.waveshelf-player--notice {
  margin: 18px 0 0;
  padding: 28px;
  border: 1px solid var(--waveshelf-line);
  border-radius: var(--waveshelf-radius);
  background: var(--waveshelf-surface);
  color: var(--waveshelf-muted);
  text-align: center;
  font-weight: 800;
}

.waveshelf-global-player {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 18px;
  width: min(1120px, calc(100vw - 28px));
  transform: translateX(-50%);
  border: 1px solid var(--waveshelf-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--waveshelf-shadow);
  backdrop-filter: blur(14px);
}

.waveshelf-global-player[hidden] {
  display: none;
}

.waveshelf-global-player__inner {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 116px 38px minmax(150px, 1fr) 38px 30px 34px 82px 30px;
  gap: 8px;
  align-items: center;
  min-height: 90px;
  padding: 14px 16px;
}

.waveshelf-now-playing {
  min-width: 0;
}

.waveshelf-player-title {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waveshelf-player-artist {
  display: none;
  margin-top: 4px;
  overflow: hidden;
  color: var(--waveshelf-muted);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waveshelf-main-controls {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.waveshelf-current-time,
.waveshelf-duration-time {
  color: var(--waveshelf-muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.waveshelf-global-waveform-shell {
  height: 46px;
}

.waveshelf-global-download-button {
  width: 30px;
  height: 30px;
}

.waveshelf-volume input {
  width: 80px;
  accent-color: var(--waveshelf-yellow);
}

.waveshelf-close-player {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.waveshelf-audio-status {
  position: absolute;
  left: -9999px;
}

.waveshelf-toast {
  position: fixed;
  z-index: 10000;
  right: 22px;
  bottom: 124px;
  max-width: min(320px, calc(100vw - 44px));
  border-radius: 12px;
  padding: 12px 14px;
  background: #171717;
  color: #fff;
  box-shadow: var(--waveshelf-shadow);
  font-size: 13px;
  font-weight: 800;
}

.waveshelf-toast[hidden] {
  display: none;
}

.waveshelf-loading-ring {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(23, 23, 23, .18);
  border-top-color: var(--waveshelf-ink);
  border-radius: 999px;
  animation: waveshelf-spin .8s linear infinite;
}

@keyframes waveshelf-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .waveshelf-player *,
  .waveshelf-player *::before,
  .waveshelf-player *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .waveshelf-global-player__inner {
    grid-template-columns: minmax(130px, 220px) 116px 38px minmax(130px, 1fr) 38px 30px 34px 30px;
    grid-template-rows: auto auto;
    min-height: 116px;
  }

  .waveshelf-now-playing {
    grid-column: 1;
    grid-row: 1;
  }

  .waveshelf-main-controls {
    grid-column: 2;
    grid-row: 1;
  }

  .waveshelf-current-time {
    grid-column: 3;
    grid-row: 1;
  }

  .waveshelf-global-waveform-shell {
    grid-column: 4;
    grid-row: 1;
  }

  .waveshelf-duration-time {
    grid-column: 5;
    grid-row: 1;
  }

  .waveshelf-global-download-button {
    grid-column: 6;
    grid-row: 1;
  }

  .waveshelf-mute-button {
    grid-column: 7;
    grid-row: 1;
  }

  .waveshelf-close-player {
    grid-column: 8;
    grid-row: 1;
  }

  .waveshelf-volume {
    grid-column: 4 / 8;
    grid-row: 2;
    justify-self: end;
    max-width: 100%;
  }

  .waveshelf-volume input {
    width: min(180px, 100%);
  }
}

@media (max-width: 900px) {
  .waveshelf-player {
    padding-inline: 14px;
  }

  .waveshelf-catalog-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .waveshelf-filter-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .waveshelf-filter-sidebar__header {
    margin-bottom: 20px;
  }

  .waveshelf-filter-sidebar__header h3 {
    font-size: 20px;
  }

  .waveshelf-filter-heading {
    font-size: 16px;
  }

  .waveshelf-filter-option {
    font-size: 14px;
  }

  .waveshelf-player__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .waveshelf-player__search {
    flex-basis: auto;
  }

  .waveshelf-track-row {
    grid-template-columns: 42px minmax(0, 1fr) 70px;
    gap: 12px;
  }

  .waveshelf-row-waveform-shell {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .waveshelf-track-details {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    gap: 18px;
    text-align: left;
  }

  .waveshelf-track-actions {
    grid-column: 3;
    grid-row: 3;
    align-self: center;
    flex-direction: row;
  }

  .waveshelf-global-player__inner {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .waveshelf-now-playing {
    grid-column: 1 / 2;
  }

  .waveshelf-main-controls {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  .waveshelf-current-time {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  .waveshelf-global-waveform-shell {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .waveshelf-duration-time {
    display: inline;
    grid-column: 2;
    grid-row: 3;
    text-align: right;
  }

  .waveshelf-global-download-button {
    grid-column: 3;
    grid-row: 3;
    justify-self: end;
  }

  .waveshelf-mute-button,
  .waveshelf-volume {
    display: none;
  }

  .waveshelf-close-player {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 560px) {
  .waveshelf-player {
    padding-bottom: 150px;
  }

  .waveshelf-player__hero h2 {
    font-size: 38px;
  }

  .waveshelf-track-row {
    padding: 12px;
  }

  .waveshelf-track-title {
    font-size: 15px;
  }

  .waveshelf-track-actions {
    gap: 2px;
  }

  .waveshelf-global-player {
    bottom: 10px;
    width: calc(100vw - 18px);
  }

  .waveshelf-global-player__inner {
    min-height: 112px;
    padding: 12px;
  }

  .waveshelf-main-controls .waveshelf-icon-button {
    width: 34px;
    height: 34px;
  }
}
