.cap-open-player-btn {
  padding: 12px 22px;
  border: 0;
  border-radius: 30px;
  background: #d99b39;
  color: #fff;
  cursor: pointer;
}

.cap-audio-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  box-sizing: border-box;
}

.cap-audio-popup.show {
  display: flex;
}

/* Freeze background page while the audio popup is open. */
html.cap-popup-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.cap-popup-open {
  position: fixed !important;
  width: 100% !important;
  overflow: hidden !important;
  left: 0;
  right: 0;
  overscroll-behavior: none;
  touch-action: none;
}

body.cap-popup-open .cap-audio-popup,
body.cap-popup-open .cap-audio-popup * {
  touch-action: auto;
}

.cap-audio-popup.show {
  overscroll-behavior: contain;
}

.cap-player {
  width: min(980px, 94vw);
  max-height: 92vh;
  height: min(90vh, 760px);
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff8ed 100%);
  border-radius: 12px;
  padding: 26px;
  position: relative;
  box-shadow: 0 20px 80px rgba(0,0,0,.25);
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.cap-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border: 0;
    background: #f1b16b;
    color: #fff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    z-index: 3;
	padding: 0 !important;
    border-radius: 25px !important;
}

.cap-player-main,
.top {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
  padding-right: 52px;
}

.cap-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: #eee;
}

.cap-info {
  padding-right: 0;
}

.cap-badge {
  display: inline-block;
  background: #fff1d9;
  color: #c98218;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  line-height: 1;
  margin-bottom: 12px;
}

.cap-info h2,
.cap-player h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  color: #252525;
}

.cap-info > p:not(.cap-desc),
.cap-meta {
  margin: 0 0 8px;
  color: #777;
  font-size: 14px;
}

.cap-desc {
  max-width: 680px;
  margin: 0 0 18px;
  color: #333;
  line-height: 1.5;
  font-size: 14px;
}

.cap-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0 16px;
  flex-wrap: wrap;
}

.cap-controls button {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  width: 42px;
  height: 42px;
  min-width: 42px;
  box-shadow: none !important;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cap-controls button img {
  display: block;
  width: 24px;
  height: 24px;
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  pointer-events: none;
}

.cap-play-btn {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  border: 2px solid #d99b39 !important;
  background: #fff !important;
  transform: none;
  border-radius: 50%;
}

.cap-play-btn img {
  width: 26px;
  height: 26px;
  max-width: 62%;
  max-height: 62%;
  object-fit: contain;
}

.cap-progress {
  width: 100%;
  height: 6px;
  accent-color: #d99b39;
  cursor: pointer;
  margin-top: 4px;
}

.cap-search {
  width: 100%;
  margin: 26px 0 12px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid #eee;
  outline: none;
  box-sizing: border-box;
  font-size: 14px;
  background: #fff;
}

.cap-search-filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0 12px;
  flex: 0 0 auto;
}

.cap-search-filter-row .cap-search {
  flex: 1;
  margin: 0;
}

.cap-filter-btn {
  border: 0;
  background: #fff;
  color: #c98218;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.cap-playlist {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 145px;
  max-height: none;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.cap-player-main {
  flex: 0 0 auto;
}

.cap-playlist::-webkit-scrollbar {
  width: 8px;
}

.cap-playlist::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.25);
  border-radius: 8px;
}

.cap-playlist::-webkit-scrollbar-track {
  background: rgba(0,0,0,.05);
}

.cap-playlist li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 10px;
  border-bottom: 1px solid #eee;
  color: #222;
  font-size: 14px;
}

.cap-playlist .active,
.cap-playlist li.active {
  color: #d99b39;
  font-weight: 700;
}

@media (max-width: 768px) {
  .cap-audio-popup {
    padding: 10px;
    align-items: flex-start;
  }

  .cap-player {
    width: 100%;
    max-height: 96vh;
    height: 96vh;
    padding: 18px;
  }

  .cap-close {
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
  }

  .cap-player-main,
  .top {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-right: 0;
    text-align: center;
  }

  .cap-cover {
    max-width: 240px;
    margin: 0 auto;
  }

 .cap-controls {
    justify-content: center;
    gap: 14px;
  }

  .cap-search-filter-row {
    flex-direction: column;
    gap: 10px;
  }

  .cap-search,
  .cap-search-filter-row .cap-search,
  .cap-filter-btn {
    width: 100%;
    box-sizing: border-box;
  }

  .cap-playlist li {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .cap-player {
    padding: 14px;
    height: 96vh;
  }

  .cap-cover {
    max-width: 200px;
  }

 .cap-controls button {
    width: 38px;
    height: 38px;
  }

 .cap-play-btn {
    width: 50px;
    height: 50px;
  }

  .cap-playlist li {
    padding: 14px 4px;
  }
}

.cap-audio-time-row {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  color: #777;
  font-size: 13px;
}

.cap-wrap button:focus,
.cap-wrap input:focus {
  outline: 2px solid #d99b39;
  outline-offset: 2px;
}

.cap-icon-btn.cap-prev-track img,
.cap-icon-btn.cap-next-track img,
.cap-icon-btn.cap-replay-btn img,
.cap-icon-btn.cap-mute-btn img {
  width: 25px;
  height: 25px;
}

.cap-volume {
  width: 130px;
  height: 6px;
  accent-color: #d99b39;
  cursor: pointer;
}

@media (max-width: 480px) {
  .cap-volume {
    width: 100px;
  }

  .cap-controls button img {
    width: 22px;
    height: 22px;
  }
}


/* Production icon controls: use supplied PNGs without font/icon fallbacks. */
.cap-controls .cap-play-btn.is-playing img,
.cap-controls .cap-play-btn.is-paused img,
.cap-controls .cap-icon-btn img {
  object-fit: contain;
  aspect-ratio: auto;
}

.cap-controls .cap-prev-track img,
.cap-controls .cap-next-track img,
.cap-controls .cap-replay-btn img,
.cap-controls .cap-mute-btn img {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
}

.cap-controls .cap-play-btn img {
  width: 30px;
  height: 30px;
  max-width: 30px;
  max-height: 30px;
}

.cap-controls .cap-play-btn.is-playing img {
  width: 26px;
  height: 26px;
  max-width: 26px;
  max-height: 26px;
}

@media (max-width: 480px) {
  .cap-controls .cap-prev-track img,
  .cap-controls .cap-next-track img,
  .cap-controls .cap-replay-btn img,
  .cap-controls .cap-mute-btn img {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
  }

  .cap-controls .cap-play-btn img {
    width: 26px;
    height: 26px;
    max-width: 26px;
    max-height: 26px;
  }
}


/* Final production fixes: mute state and mobile image aspect ratio */
.cap-mute-btn {
  position: relative;
}

.cap-mute-btn::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 28px;
  background: #d99b39;
  border-radius: 3px;
  transform: rotate(-45deg) scaleY(0);
  opacity: 0;
  transition: opacity .12s ease, transform .12s ease;
  pointer-events: none;
}

.cap-mute-btn.is-muted::after {
  opacity: 1;
  transform: rotate(-45deg) scaleY(1);
}

.cap-mute-btn.is-muted img {
  opacity: .75;
}

@media (max-width: 768px) {
  .cap-cover-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  .cap-cover {
    width: auto;
    max-width: min(240px, 92vw);
    height: auto;
    max-height: 240px;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center center;
  }
}

@media (max-width: 480px) {
  .cap-cover {
    max-width: 96px;
    max-height: 96px;
    object-fit: contain;
  }

  .cap-mute-btn::after {
    height: 24px;
    width: 2px;
  }
}


/* Mobile production layout fixes: compact player, left image, aligned volume, cohesive search/filter */
.cap-volume-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.cap-filter-btn .cap-filter-icon {
  display: none;
}

@media (max-width: 768px) {
  .cap-audio-popup {
    padding: 8px;
    align-items: center;
  }

  .cap-player {
    height: 94dvh;
    max-height: 94dvh;
    padding: 16px 12px 12px;
    border-radius: 12px;
  }

  .cap-close {
    width: 44px;
    height: 44px;
    top: 10px;
    right: 10px;
    z-index: 10;
  }

  .cap-player-main,
  .top {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    text-align: left;
    padding-right: 48px;
  }

  .cap-cover-wrap {
    width: 112px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .cap-cover {
    width: 100%;
    height: 100%;
    max-width: 112px;
    max-height: 112px;
    object-fit: contain !important;
    object-position: center center;
    aspect-ratio: auto;
    border-radius: 8px;
  }

  .cap-info {
    min-width: 0;
  }

  .cap-badge {
    font-size: 10px;
    padding: 5px 10px;
    margin-bottom: 6px;
  }

  .cap-info h2,
  .cap-player h2 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.05;
    margin-bottom: 6px;
  }

  .cap-meta {
    font-size: 12px;
    line-height: 1.25;
    margin-bottom: 0;
  }

  .cap-desc {
    display: none !important;
  }

  .cap-audio-time-row {
    grid-column: 1 / -1;
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
  }

  .cap-controls {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin: 12px 0 10px;
  }

  .cap-controls button {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .cap-play-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  .cap-controls .cap-prev-track img,
  .cap-controls .cap-next-track img,
  .cap-controls .cap-replay-btn img,
  .cap-controls .cap-mute-btn img,
  .cap-controls .cap-play-btn img {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
  }

  .cap-volume-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 110px;
  }

  .cap-volume {
    width: 76px;
    min-width: 76px;
  }

  .cap-search-filter-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    margin: 10px 0 8px;
    border: 1px solid #d8c4a5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }

  .cap-search-filter-row .cap-search,
  .cap-search {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 12px 14px;
    font-size: 14px;
    background: #fff;
  }

  .cap-filter-btn {
    flex: 0 0 54px;
    width: 54px;
    min-width: 54px;
    padding: 0;
    border-radius: 0;
    background: #f1b16b;
    color: #fff;
    box-shadow: none;
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cap-filter-btn .cap-filter-text {
    display: none;
  }

  .cap-filter-btn .cap-filter-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    position: relative;
  }

  .cap-filter-btn .cap-filter-icon::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 4px;
    width: 16px;
    height: 14px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 62% 45%, 62% 100%, 38% 100%, 38% 45%);
  }

  .cap-playlist {
    min-height: 180px;
    flex: 1 1 auto;
  }

  .cap-playlist li {
    padding: 12px 4px;
    gap: 10px;
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .cap-player {
    height: 94dvh;
    max-height: 94dvh;
    padding: 12px 10px 10px;
  }

  .cap-player-main,
  .top {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    padding-right: 42px;
  }

  .cap-cover-wrap {
    width: 88px;
    height: 88px;
  }

  .cap-cover {
    max-width: 88px;
    max-height: 88px;
  }

  .cap-close {
    width: 38px;
    height: 38px;
    font-size: 24px !important;
  }

  .cap-info h2,
  .cap-player h2 {
    font-size: clamp(21px, 7vw, 28px);
  }

  .cap-meta {
    font-size: 11px;
  }

  .cap-controls {
    gap: 7px;
  }

  .cap-controls button {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .cap-play-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .cap-volume-group {
    min-width: 94px;
    gap: 6px;
  }

  .cap-volume {
    width: 58px;
    min-width: 58px;
  }

  .cap-playlist {
    min-height: 200px;
  }
}

@media (max-width: 360px) {
  .cap-player-main,
  .top {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .cap-cover-wrap {
    width: 76px;
    height: 76px;
  }

  .cap-cover {
    max-width: 76px;
    max-height: 76px;
  }

  .cap-controls {
    gap: 5px;
  }

  .cap-volume-group {
    min-width: 82px;
  }

  .cap-volume {
    width: 48px;
    min-width: 48px;
  }
}


/* Mobile polish update: title, description read-more, controls, image and filter button */
.cap-read-more {
  display: none;
  border: 0;
  background: transparent;
  color: #d99b39;
  font-weight: 700;
  padding: 0;
  margin: 0 0 6px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .cap-player-main,
  .top {
    align-items: start !important;
  }

  .cap-cover-wrap {
    align-self: start !important;
    align-items: flex-start !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .cap-info h2,
  .cap-player h2,
  .cap-title {
    font-size: 20px !important;
    line-height: 1.1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 6px !important;
  }

  .cap-desc {
    display: block !important;
    margin: 5px 0 2px !important;
    font-size: 11px !important;
    line-height: 1.32 !important;
    max-width: 100%;
    color: #222;
  }

  .cap-read-more {
    display: inline-block;
  }

  .cap-audio-time-row,
  .cap-controls {
    grid-column: 1 / -1;
  }

  .cap-controls {
    width: 100%;
    max-width: 100%;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 0 2px;
    box-sizing: border-box;
  }

  .cap-controls button {
    flex: 0 0 auto;
  }

  .cap-volume-group {
    margin-left: 0;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end;
    gap: 7px !important;
    flex: 0 0 106px;
    min-width: 106px !important;
  }

  .cap-volume {
    width: 66px !important;
    min-width: 66px !important;
  }

  .cap-search-filter-row {
    border: 1px solid #2b2b2b !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
  }

  .cap-filter-btn {
    flex: 0 0 62px !important;
    width: 62px !important;
    min-width: 62px !important;
    background: linear-gradient(180deg, #f4b66f 0%, #efa85f 100%) !important;
    border-left: 1px solid rgba(0,0,0,.16) !important;
    color: #fff !important;
    transition: filter .15s ease, transform .15s ease;
  }

  .cap-filter-btn:active {
    transform: scale(.98);
    filter: brightness(.96);
  }

  .cap-filter-btn .cap-filter-icon {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
  }

  .cap-filter-btn .cap-filter-icon::before {
    left: 6px !important;
    top: 6px !important;
    width: 14px !important;
    height: 13px !important;
    background: #fff !important;
    clip-path: polygon(0 0, 100% 0, 66% 42%, 66% 82%, 50% 100%, 34% 82%, 34% 42%) !important;
  }
}

@media (max-width: 430px) {
  .cap-player-main,
  .top {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .cap-cover-wrap {
    width: 88px !important;
    height: 88px !important;
  }

  .cap-controls {
    gap: 4px !important;
    padding: 0 !important;
  }

  .cap-controls button {
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
  }

  .cap-play-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  .cap-volume-group {
    flex-basis: 92px;
    min-width: 92px !important;
    gap: 5px !important;
  }

  .cap-volume {
    width: 54px !important;
    min-width: 54px !important;
  }
}

@media (max-width: 370px) {
  .cap-player-main,
  .top {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 8px !important;
    padding-right: 38px !important;
  }

  .cap-cover-wrap {
    width: 76px !important;
    height: 76px !important;
  }

  .cap-desc {
    font-size: 10.5px !important;
  }

  .cap-volume-group {
    flex-basis: 82px;
    min-width: 82px !important;
  }

  .cap-volume {
    width: 46px !important;
    min-width: 46px !important;
  }
}

/* Final mobile refinements: remove meta, inline Read More, full-width controls */
@media (max-width: 768px) {
  .cap-meta {
    display: none !important;
  }

  .cap-player-main,
  .top {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .cap-cover-wrap {
    align-self: start !important;
    margin-top: 0 !important;
  }

  .cap-desc {
    display: inline !important;
    margin: 4px 0 0 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .cap-read-more {
    display: inline !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
    padding: 0 !important;
    margin: 0 0 0 4px !important;
    color: #d99b39 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    text-decoration: underline;
    cursor: pointer;
    vertical-align: baseline;
  }

  .cap-read-more:focus {
    outline: 1px solid #d99b39;
    outline-offset: 2px;
  }

  .cap-audio-time-row {
    margin-top: 18px !important;
  }

  .cap-controls {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(28px, 1fr)) minmax(94px, 1.35fr) !important;
    align-items: center !important;
    justify-items: center !important;
    column-gap: 2px !important;
    row-gap: 0 !important;
    padding: 0 !important;
    margin: 12px 0 12px !important;
  }

  .cap-controls button {
    justify-self: center !important;
  }

  .cap-volume-group {
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    flex-basis: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .cap-volume-group .cap-mute-btn {
    flex: 0 0 30px !important;
  }

  .cap-volume {
    width: 100% !important;
    min-width: 46px !important;
    max-width: 86px !important;
  }
}

@media (max-width: 430px) {
  .cap-controls {
    grid-template-columns: repeat(5, minmax(26px, 1fr)) minmax(82px, 1.35fr) !important;
  }

  .cap-controls button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }

  .cap-play-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }

  .cap-volume-group .cap-mute-btn {
    flex-basis: 28px !important;
  }
}

@media (max-width: 360px) {
  .cap-controls {
    grid-template-columns: repeat(5, minmax(24px, 1fr)) minmax(72px, 1.2fr) !important;
  }

  .cap-volume {
    min-width: 38px !important;
  }
}

/* Mobile layout fix: centered cover image, full-width content, no icon overlap */
@media (max-width: 768px) {
  .cap-player-main,
  .top {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding-right: 0 !important;
  }

  .cap-cover-wrap {
    width: 96px !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 auto 2px !important;
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  .cap-cover {
    width: 96px !important;
    height: auto !important;
    max-width: 96px !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
  }

  .cap-info {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  .cap-badge {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .cap-title,
  .cap-info h2,
  .cap-player h2 {
    width: 100% !important;
    text-align: center !important;
    font-size: 20px !important;
    line-height: 1.15 !important;
    margin: 4px 0 6px !important;
    white-space: normal !important;
  }

  .cap-meta {
    display: none !important;
  }

  .cap-desc,
  .cap-desc.is-collapsed,
  .cap-desc.is-expanded {
    display: inline !important;
    text-align: center !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
  }

  .cap-read-more {
    display: inline !important;
    margin-left: 4px !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .cap-audio-time-row {
    width: 100% !important;
    margin: 14px 0 8px !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: center !important;
  }

  .cap-controls {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin: 10px 0 14px !important;
    padding: 0 2px !important;
  }

  .cap-controls > button,
  .cap-controls .cap-icon-btn,
  .cap-controls .cap-play-btn {
    flex: 0 0 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .cap-controls img {
    max-width: 22px !important;
    max-height: 22px !important;
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
  }

  .cap-volume-group {
    flex: 0 0 88px !important;
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    margin: 0 !important;
  }

  .cap-volume-group .cap-mute-btn {
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
  }

  .cap-volume {
    flex: 0 0 54px !important;
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    margin: 0 !important;
  }

  .cap-search-filter-row {
    margin-top: 8px !important;
  }
}

@media (max-width: 380px) {
  .cap-player {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .cap-cover-wrap,
  .cap-cover {
    width: 86px !important;
    max-width: 86px !important;
  }

  .cap-controls {
    gap: 4px !important;
    padding: 0 !important;
  }

  .cap-controls > button,
  .cap-controls .cap-icon-btn,
  .cap-controls .cap-play-btn {
    flex-basis: 26px !important;
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
  }

  .cap-controls img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
  }

  .cap-volume-group {
    flex-basis: 78px !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
  }

  .cap-volume {
    flex-basis: 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
  }
}

/* 2026-06 final UI refinements: compact mobile search, balanced controls, inline read-more, close hover, uncropped desktop artwork */
.cap-close {
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.cap-close:hover,
.cap-close:focus-visible {
  background: #052B4A !important;
  color: #fff !important;
  border-color: #052B4A !important;
}

/* Hide meta line as requested and keep description/read-more as the single text block under the title. */
.cap-meta {
  display: none !important;
}

.cap-cover {
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent;
}

@media (min-width: 769px) {
  .cap-player-main,
  .top {
    grid-template-columns: 260px minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .cap-cover-wrap {
    width: 260px !important;
    height: 260px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .cap-cover {
    width: auto !important;
    height: auto !important;
    max-width: 260px !important;
    max-height: 260px !important;
    display: block !important;
  }

  .cap-desc {
    display: inline !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #333 !important;
  }

  .cap-read-more {
    display: inline !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 0 6px !important;
    color: #d99b39 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    vertical-align: baseline !important;
  }

  .cap-audio-time-row {
    margin-top: 26px !important;
  }
}

@media (max-width: 768px) {
  .cap-player {
    padding: 14px 12px 10px !important;
  }

  .cap-desc,
  .cap-desc.is-collapsed,
  .cap-desc.is-expanded {
    font-size: 13px !important;
    line-height: 1.32 !important;
  }

  .cap-read-more {
    font-size: 12px !important;
    line-height: 1.32 !important;
    margin-left: 5px !important;
    color: #d99b39 !important;
    text-decoration: underline !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .cap-audio-time-row {
    margin: 18px 0 10px !important;
  }

  .cap-controls {
    justify-content: center !important;
    gap: 10px !important;
    margin: 14px 0 14px !important;
    padding: 0 !important;
  }

  .cap-controls > button,
  .cap-controls .cap-icon-btn,
  .cap-controls .cap-play-btn {
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
  }

  .cap-volume-group {
    flex: 0 0 76px !important;
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    gap: 4px !important;
  }

  .cap-volume-group .cap-mute-btn {
    flex: 0 0 26px !important;
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
  }

  .cap-volume {
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
  }

  .cap-search-filter-row {
    height: 48px !important;
    min-height: 48px !important;
    margin-top: 10px !important;
    border-radius: 7px !important;
  }

  .cap-search-filter-row .cap-search,
  .cap-search {
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    line-height: 46px !important;
  }

  .cap-filter-btn {
    flex: 0 0 56px !important;
    width: 56px !important;
    min-width: 56px !important;
    height: 46px !important;
    min-height: 46px !important;
  }
}

@media (max-width: 380px) {
  .cap-controls {
    gap: 8px !important;
  }

  .cap-controls > button,
  .cap-controls .cap-icon-btn,
  .cap-controls .cap-play-btn {
    flex-basis: 26px !important;
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
  }

  .cap-volume-group {
    flex-basis: 70px !important;
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
  }

  .cap-volume {
    flex-basis: 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
  }
}

/* 2026-06-23 final requested UI adjustments: balanced mobile controls, no range focus ring, gold search border, matching filter height/alignment */
.cap-wrap input[type="range"]:focus,
.cap-wrap input[type="range"]:focus-visible,
.cap-wrap .cap-progress:focus,
.cap-wrap .cap-progress:focus-visible,
.cap-wrap .cap-volume:focus,
.cap-wrap .cap-volume:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: initial !important;
}

.cap-search-filter-row {
  align-items: stretch !important;
  gap: 14px !important;
}

.cap-search-filter-row .cap-search,
.cap-search {
  border: 2px solid #d99b39 !important;
  box-shadow: none !important;
}

.cap-filter-btn {
  min-height: 46px !important;
  height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  .cap-search-filter-row .cap-search,
  .cap-search {
    height: 46px !important;
    min-height: 46px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 42px !important;
    border-radius: 0 !important;
  }

  .cap-filter-btn {
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 28px !important;
    border-radius: 0 !important;
    background: #f1b16b !important;
    color: #fff !important;
    font-weight: 700 !important;
  }
}

@media (max-width: 768px) {
  .cap-controls {
    justify-content: center !important;
    gap: 13px !important;
    margin-top: 16px !important;
    margin-bottom: 14px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .cap-controls > button,
  .cap-controls .cap-icon-btn,
  .cap-controls .cap-play-btn {
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
  }

  .cap-volume-group {
    flex: 0 0 84px !important;
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    gap: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .cap-volume-group .cap-mute-btn {
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
  }

  .cap-volume {
    flex: 0 0 50px !important;
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
  }

  .cap-search-filter-row {
    height: 50px !important;
    min-height: 50px !important;
    margin-top: 10px !important;
    border: 2px solid #d99b39 !important;
    border-radius: 7px !important;
    overflow: hidden !important;
    gap: 0 !important;
    align-items: stretch !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }

  .cap-search-filter-row .cap-search,
  .cap-search {
    height: 46px !important;
    min-height: 46px !important;
    line-height: 46px !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
  }

  .cap-filter-btn {
    flex: 0 0 58px !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #f1b16b !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  .cap-filter-btn .cap-filter-icon {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    position: relative !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  .cap-filter-btn .cap-filter-icon::before {
    left: 2px !important;
    top: 3px !important;
    width: 16px !important;
    height: 14px !important;
  }
}

@media (max-width: 380px) {
  .cap-controls {
    gap: 10px !important;
  }

  .cap-volume-group {
    flex-basis: 76px !important;
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
  }

  .cap-volume {
    flex-basis: 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
  }
}

/* 2026-06-23 mobile spacing/focus/filter-icon final patch */
.cap-wrap input:focus,
.cap-wrap input:focus-visible,
.cap-wrap input[type="search"]:focus,
.cap-wrap input[type="search"]:focus-visible,
.cap-wrap .cap-search:focus,
.cap-wrap .cap-search:focus-visible,
.cap-search-filter-row .cap-search:focus,
.cap-search-filter-row .cap-search:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

.cap-search-filter-row .cap-search,
.cap-search {
  border-color: #d99b39 !important;
}

.cap-filter-btn,
.cap-filter-btn:focus,
.cap-filter-btn:focus-visible,
.cap-filter-btn:active {
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

@media (max-width: 768px) {
  .cap-controls {
    gap: 20px !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin-top: 18px !important;
  }

  .cap-controls > button,
  .cap-controls .cap-icon-btn,
  .cap-controls .cap-play-btn {
    flex: 0 0 26px !important;
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
  }

  .cap-controls img {
    width: 21px !important;
    height: 21px !important;
    max-width: 21px !important;
    max-height: 21px !important;
  }

  .cap-volume-group {
    flex: 0 0 76px !important;
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    gap: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .cap-volume-group .cap-mute-btn {
    flex: 0 0 24px !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
  }

  .cap-volume {
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
  }

  .cap-search-filter-row {
    border: 2px solid #d99b39 !important;
    overflow: hidden !important;
    gap: 0 !important;
    align-items: stretch !important;
  }

  .cap-search-filter-row .cap-search,
  .cap-search {
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
  }

  .cap-filter-btn {
    position: relative !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f1b16b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .cap-filter-btn::before,
  .cap-filter-btn::after,
  .cap-filter-icon::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
  }

  .cap-filter-btn .cap-filter-icon {
    display: block !important;
    position: relative !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  .cap-filter-btn .cap-filter-icon::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 1px !important;
    top: 2px !important;
    width: 16px !important;
    height: 14px !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    clip-path: polygon(0 0, 100% 0, 62% 45%, 62% 100%, 38% 100%, 38% 45%) !important;
    -webkit-clip-path: polygon(0 0, 100% 0, 62% 45%, 62% 100%, 38% 100%, 38% 45%) !important;
  }
}

@media (max-width: 380px) {
  .cap-controls {
    gap: 16px !important;
  }
  .cap-volume-group {
    flex-basis: 70px !important;
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    gap: 5px !important;
  }
  .cap-volume {
    flex-basis: 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
  }
}

@media (max-width: 340px) {
  .cap-controls {
    gap: 12px !important;
  }
}

/* 2026-06-23 typography update requested by client */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

.cap-player,
.cap-player * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main audio title */
.cap-info h2,
.cap-player h2,
.cap-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 36px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}

/* Description / paragraph text */
.cap-desc,
.cap-desc.is-collapsed,
.cap-desc.is-expanded,
.cap-read-more {
  font-family: 'Inter', sans-serif !important;
}

/* Playlist audio titles */
.cap-playlist li,
.cap-playlist li span:first-child {
  font-family: 'Poppins', sans-serif !important;
  font-size: 16px !important;
}

.cap-playlist li span:last-child {
  font-family: 'Inter', sans-serif !important;
}

@media (max-width: 768px) {
  .cap-info h2,
  .cap-player h2,
  .cap-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 20px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
  }

  .cap-desc,
  .cap-desc.is-collapsed,
  .cap-desc.is-expanded,
  .cap-read-more {
    font-family: 'Inter', sans-serif !important;
  }

  .cap-playlist li,
  .cap-playlist li span:first-child {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
  }

  .cap-playlist li span:last-child {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
  }
}


/* 2026-06-24 category display update */
.cap-title-category {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #777 !important;
  margin: -2px 0 10px !important;
  display: block !important;
}

.cap-meta {
  display: none !important;
}

.cap-playlist li {
  align-items: center !important;
}

.cap-playlist-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
}

.cap-playlist-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
}

.cap-playlist-category {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  color: #777 !important;
  font-weight: 400 !important;
}

.cap-playlist-duration {
  font-family: 'Inter', sans-serif !important;
  white-space: nowrap !important;
  margin-left: auto !important;
}

.cap-playlist li.active .cap-playlist-category {
  color: #c98218 !important;
  opacity: .9 !important;
}

@media (max-width: 768px) {
  .cap-title-category {
    font-size: 13px !important;
    line-height: 1.35 !important;
    margin: 0 0 8px !important;
  }

  .cap-playlist-title {
    font-size: 14px !important;
  }

  .cap-playlist-category {
    font-size: 11px !important;
  }
}

/* 2026-06-24 client feedback implementation: category below title, clean search/filter, dropdown, scrollbar, image and numbering cleanup */
.cap-player {
  border-radius: 12px !important;
  padding-top: 34px !important;
}

.cap-cover-wrap {
  padding-top: 10px !important;
}

.cap-cover {
  border-radius: 10px !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
  background: transparent !important;
}

.cap-title-category {
  display: block !important;
  font-family: 'Inter', sans-serif !important;
  color: #777 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  margin: -2px 0 12px !important;
}

.cap-playlist-category {
  display: none !important;
}

.cap-playlist::-webkit-scrollbar {
  width: 10px !important;
}

.cap-playlist::-webkit-scrollbar-track {
  background: #f7ead8 !important;
  border-radius: 999px !important;
}

.cap-playlist::-webkit-scrollbar-thumb {
  background: #d99b39 !important;
  border-radius: 999px !important;
  border: 2px solid #f7ead8 !important;
}

.cap-playlist {
  scrollbar-color: #d99b39 #f7ead8 !important;
  scrollbar-width: thin !important;
}

.cap-search-filter-row {
  position: relative !important;
  background: #efcf9f !important;
  border-radius: 0 !important;
  padding: 12px 18px !important;
  margin: 26px -28px 0 !important;
  gap: 16px !important;
  display: flex !important;
  align-items: center !important;
}

.cap-search-filter-row .cap-search {
  height: 34px !important;
  min-height: 34px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  padding: 0 20px 0 40px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  box-shadow: none !important;
  outline: none !important;
}

.cap-search-filter-row::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d99b39' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M16 16l5 5'/%3E%3C/svg%3E");
  z-index: 1;
}

.cap-filter-wrap {
  position: relative !important;
  flex: 0 0 auto !important;
}

.cap-filter-btn {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #c98218 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.08) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.cap-filter-btn .cap-filter-icon {
  display: inline-block !important;
  width: 13px !important;
  height: 13px !important;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d99b39'%3E%3Cpath d='M3 5a1 1 0 0 1 1-1h16a1 1 0 0 1 .8 1.6L14 14.7V20a1 1 0 0 1-1.45.9l-3-1.5A1 1 0 0 1 9 18.5v-3.8L3.2 5.6A1 1 0 0 1 3 5z'/%3E%3C/svg%3E") !important;
}

.cap-filter-btn .cap-filter-icon::before,
.cap-filter-btn .cap-filter-icon::after {
  content: none !important;
  display: none !important;
}

.cap-filter-menu {
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 8px) !important;
  min-width: 210px !important;
  max-height: 280px !important;
  overflow-y: auto !important;
  background: #fff !important;
  border: 1px solid rgba(217,155,57,.28) !important;
  border-radius: 14px !important;
  padding: 8px !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.16) !important;
  z-index: 20 !important;
  scrollbar-color: #d99b39 #f7ead8 !important;
  scrollbar-width: thin !important;
}

.cap-filter-menu::-webkit-scrollbar {
  width: 8px !important;
}

.cap-filter-menu::-webkit-scrollbar-track {
  background: #f7ead8 !important;
  border-radius: 999px !important;
}

.cap-filter-menu::-webkit-scrollbar-thumb {
  background: #d99b39 !important;
  border-radius: 999px !important;
  border: 2px solid #f7ead8 !important;
}


.cap-filter-menu[hidden] {
  display: none !important;
}

.cap-filter-menu button {
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  color: #252525 !important;
  text-align: left !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  cursor: pointer !important;
}

.cap-filter-menu button:hover,
.cap-filter-menu button.is-active {
  background: #fff1d9 !important;
  color: #c98218 !important;
}

.cap-playlist {
  padding-top: 8px !important;
}

.cap-playlist-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.cap-playlist li.active .cap-playlist-title {
  color: #d99b39 !important;
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .cap-player {
    padding-top: 18px !important;
  }

  .cap-cover-wrap {
    padding-top: 0 !important;
  }

  .cap-title-category {
    font-size: 13px !important;
    margin: 0 0 8px !important;
  }

  .cap-search-filter-row {
    margin: 18px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    gap: 0 !important;
    border: 2px solid #d99b39 !important;
    border-radius: 8px !important;
    overflow: visible !important;
  }

  .cap-search-filter-row::before {
    display: none !important;
  }

  .cap-search-filter-row .cap-search {
    border-radius: 6px 0 0 6px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  .cap-filter-wrap {
    align-self: stretch !important;
  }

  .cap-filter-btn {
    height: 48px !important;
    min-height: 48px !important;
    width: 62px !important;
    border-radius: 0 6px 6px 0 !important;
    background: #f1b16b !important;
    box-shadow: none !important;
    color: #fff !important;
    padding: 0 !important;
  }

  .cap-filter-btn .cap-filter-text {
    display: none !important;
  }

  .cap-filter-btn .cap-filter-icon {
    width: 18px !important;
    height: 18px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M3 5a1 1 0 0 1 1-1h16a1 1 0 0 1 .8 1.6L14 14.7V20a1 1 0 0 1-1.45.9l-3-1.5A1 1 0 0 1 9 18.5v-3.8L3.2 5.6A1 1 0 0 1 3 5z'/%3E%3C/svg%3E") !important;
  }

  .cap-filter-menu {
    right: 0 !important;
    top: calc(100% + 8px) !important;
    min-width: min(240px, 80vw) !important;
  }

  .cap-playlist-title {
    font-size: 14px !important;
  }
}

/* Final search/filter reference-bar styling update */
.cap-search-filter-row {
  background: #e6c99d !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 14px 18px !important;
  margin: 26px -28px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.cap-search-filter-row .cap-search {
  flex: 0 1 360px !important;
  max-width: 430px !important;
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  padding: 0 18px 0 42px !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: #1f2d3a !important;
}

.cap-search-filter-row .cap-search:focus,
.cap-search-filter-row .cap-search:focus-visible,
.cap-search-filter-row .cap-search:active {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.cap-search-filter-row::before {
  content: "" !important;
  position: absolute !important;
  left: 30px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 16px !important;
  height: 16px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 16px 16px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d99b39' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m16.2 16.2 4 4'/%3E%3C/svg%3E") !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.cap-filter-wrap {
  flex: 0 0 auto !important;
  position: relative !important;
}

.cap-filter-btn {
  height: 34px !important;
  min-height: 34px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #c98218 !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.cap-filter-btn .cap-filter-icon {
  width: 14px !important;
  height: 14px !important;
  display: inline-block !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 14px 14px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d99b39'%3E%3Cpath d='M3 5a1 1 0 0 1 1-1h16a1 1 0 0 1 .8 1.6L14 14.7V20a1 1 0 0 1-1.45.9l-3-1.5A1 1 0 0 1 9 18.5v-3.8L3.2 5.6A1 1 0 0 1 3 5z'/%3E%3C/svg%3E") !important;
}

.cap-filter-btn:hover,
.cap-filter-btn:focus,
.cap-filter-btn:focus-visible {
  background: #fff !important;
  color: #052B4A !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.cap-filter-btn:hover .cap-filter-icon,
.cap-filter-btn:focus .cap-filter-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23052B4A'%3E%3Cpath d='M3 5a1 1 0 0 1 1-1h16a1 1 0 0 1 .8 1.6L14 14.7V20a1 1 0 0 1-1.45.9l-3-1.5A1 1 0 0 1 9 18.5v-3.8L3.2 5.6A1 1 0 0 1 3 5z'/%3E%3C/svg%3E") !important;
}

@media (max-width: 768px) {
  .cap-search-filter-row {
    margin: 18px 0 0 !important;
    padding: 10px !important;
    background: #e6c99d !important;
    border: 0 !important;
    border-radius: 0 !important;
    gap: 10px !important;
  }

  .cap-search-filter-row::before {
    display: block !important;
    left: 23px !important;
    width: 15px !important;
    height: 15px !important;
    background-size: 15px 15px !important;
  }

  .cap-search-filter-row .cap-search {
    flex: 1 1 auto !important;
    max-width: none !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 999px !important;
    padding: 0 14px 0 36px !important;
    font-size: 12px !important;
  }

  .cap-filter-btn {
    width: auto !important;
    min-width: 76px !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 999px !important;
    padding: 0 13px !important;
    background: #fff !important;
    color: #c98218 !important;
    gap: 6px !important;
  }

  .cap-filter-btn .cap-filter-text {
    display: inline !important;
  }

  .cap-filter-btn .cap-filter-icon {
    width: 13px !important;
    height: 13px !important;
    background-size: 13px 13px !important;
  }
}

/* 2026-06-24 final polish: search bar radius/gap and vertical artwork alignment */
@media (min-width: 769px) {
  .cap-player-main,
  .cap-player .cap-player-main {
    align-items: center !important;
  }

  .cap-cover-wrap {
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
  }

  .cap-cover,
  .cap-cover-wrap img {
    display: block !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .cap-search-filter-row {
    padding-left: 28px !important;
    padding-right: 28px !important;
    gap: 34px !important;
    justify-content: center !important;
  }

  .cap-search-filter-row .cap-search {
    flex: 0 1 520px !important;
    max-width: 520px !important;
  }

  .cap-search-filter-row::before {
    left: calc(50% - 260px + 14px) !important;
  }
}

@media (max-width: 768px) {
  .cap-search-filter-row {
    border-radius: 10px !important;
    overflow: visible !important;
  }
}

/* 2026-06-24 final search bar + mobile scrollbar polish */
@media (min-width: 769px) {
  .cap-search-filter-row {
    padding: 14px 50px !important;
    gap: 28px !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: -28px !important;
    margin-right: -28px !important;
  }

  .cap-search-filter-row .cap-search {
    flex: 1 1 auto !important;
    max-width: none !important;
    width: auto !important;
    padding-left: 46px !important;
  }

  .cap-search-filter-row::before {
    left: 66px !important;
  }

  .cap-filter-wrap {
    flex: 0 0 auto !important;
  }
}

.cap-search-filter-row .cap-search::placeholder {
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .cap-search-filter-row {
    border-radius: 10px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .cap-search-filter-row::before {
    left: 24px !important;
    top: 50% !important;
  }

  .cap-search-filter-row .cap-search {
    padding-left: 38px !important;
    padding-right: 10px !important;
    text-indent: 0 !important;
  }

  .cap-filter-btn {
    flex: 0 0 auto !important;
  }

  .cap-playlist {
    padding-right: 14px !important;
    margin-right: 8px !important;
    scrollbar-gutter: stable !important;
  }

  .cap-playlist::-webkit-scrollbar {
    width: 6px !important;
  }

  .cap-playlist::-webkit-scrollbar-thumb {
    border-width: 1px !important;
  }
}

/* 2026-06-24 final fix: keep desktop search field compact like reference */
@media (min-width: 769px) {
  .cap-search-filter-row {
    justify-content: space-between !important;
    padding-left: 50px !important;
    padding-right: 50px !important;
    gap: 28px !important;
  }

  .cap-search-filter-row .cap-search {
    flex: 0 0 490px !important;
    width: 490px !important;
    max-width: 490px !important;
    padding-left: 46px !important;
  }

  .cap-search-filter-row::before {
    left: 66px !important;
  }

  .cap-filter-wrap {
    margin-left: auto !important;
  }
}

@media (min-width: 769px) and (max-width: 980px) {
  .cap-search-filter-row .cap-search {
    flex: 0 1 48vw !important;
    width: 48vw !important;
    max-width: 490px !important;
  }
}

/* 2026-06-24 side previous/next arrows matching client reference */
.cap-side-nav {
  position: absolute !important;
  top: 39% !important;
  transform: translateY(-50%) !important;
  z-index: 8 !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(217,155,57,.22) !important;
  background: #fff !important;
  color: #d99b39 !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.08) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 34px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.cap-side-prev {
  left: 18px !important;
}

.cap-side-next {
  right: 18px !important;
}

.cap-side-nav:hover,
.cap-side-nav:focus-visible {
  background: #fff7eb !important;
  color: #052B4A !important;
  outline: none !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.12) !important;
}

.cap-side-nav:active {
  transform: translateY(-50%) scale(.96) !important;
}

@media (min-width: 769px) {
  .cap-player {
    padding-left: 54px !important;
    padding-right: 54px !important;
  }

  .cap-search-filter-row {
    margin-left: -54px !important;
    margin-right: -54px !important;
  }
}

@media (max-width: 768px) {
  .cap-side-nav {
    top: 38% !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    font-size: 28px !important;
    box-shadow: 0 5px 14px rgba(0,0,0,.08) !important;
  }

  .cap-side-prev {
    left: 8px !important;
  }

  .cap-side-next {
    right: 8px !important;
  }

  .cap-player {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 430px) {
  .cap-side-nav {
    top: 37% !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 24px !important;
  }

  .cap-side-prev {
    left: 6px !important;
  }

  .cap-side-next {
    right: 6px !important;
  }
}

/* 2026-06-24 final side arrow alignment fix */
.cap-player .cap-side-nav {
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
}

.cap-player .cap-side-nav::before {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  color: inherit !important;
  transform: translateY(-1px) !important;
}

.cap-player .cap-side-prev::before { content: '‹' !important; }
.cap-player .cap-side-next::before { content: '›' !important; }

.cap-player .cap-side-nav:active {
  transform: translateY(-50%) scale(.96) !important;
}

@media (min-width: 769px) {
  .cap-player .cap-side-nav {
    /* center within the top player area, not the playlist */
    top: clamp(205px, 31vh, 285px) !important;
  }
  .cap-player .cap-side-nav::before {
    font-size: 31px !important;
  }
}

@media (max-width: 768px) {
  .cap-player .cap-side-nav {
    top: clamp(185px, 36vh, 245px) !important;
  }
  .cap-player .cap-side-nav::before {
    font-size: 26px !important;
  }
}

@media (max-width: 430px) {
  .cap-player .cap-side-nav {
    top: clamp(175px, 35vh, 225px) !important;
  }
  .cap-player .cap-side-nav::before {
    font-size: 24px !important;
  }
}

/* Final icon-only update from provided SVG pack */
.cap-controls .cap-icon-btn img,
.cap-controls .cap-mute-btn img,
.cap-controls .cap-replay-btn img,
.cap-controls .cap-prev-track img,
.cap-controls .cap-next-track img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  object-fit: contain !important;
}

.cap-controls .cap-play-btn {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cap-controls .cap-play-btn img {
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  object-fit: contain !important;
}

.cap-controls .cap-play-btn.is-playing img {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
}

.cap-player .cap-side-nav {
  font-size: 0 !important;
  color: transparent !important;
  background-color: #fff !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 20px !important;
}
.cap-player .cap-side-prev {
  background-image: url('icons/next.svg') !important;
}
.cap-player .cap-side-next {
  background-image: url('icons/pervious.svg') !important;
}
.cap-player .cap-side-nav::before {
  content: none !important;
  display: none !important;
}

@media (max-width: 768px) {
  .cap-controls .cap-icon-btn img,
  .cap-controls .cap-mute-btn img,
  .cap-controls .cap-replay-btn img,
  .cap-controls .cap-prev-track img,
  .cap-controls .cap-next-track img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
  }
  .cap-controls .cap-play-btn img {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
  }
  .cap-controls .cap-play-btn.is-playing img {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
  }
}

/* 2026-06-24 requested typography/background fixes applied to provided plugin */
.cap-player {
  background: #F7F5F2 !important;
}

.cap-search-filter-row {
  background: #e8c994 !important;
}

.cap-title,
.cap-info h2.cap-title,
.cap-player h2.cap-title {
  font-family: 'Poppins', Arial, sans-serif !important;
  font-weight: 600 !important;
  color: #212223 !important;
}

.cap-desc,
.cap-desc.is-collapsed,
.cap-desc.is-expanded {
  color: #000000 !important;
}

.cap-read-more {
  display: block !important;
  width: fit-content !important;
  margin: 4px 0 0 0 !important;
  padding: 0 !important;
  text-align: left !important;
  align-self: flex-start !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #d99b39 !important;
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}

.cap-info {
  text-align: left !important;
}

.cap-playlist-title,
.cap-playlist li .cap-playlist-title,
.cap-playlist li span.cap-playlist-title,
.cap-playlist-info .cap-playlist-title {
  font-family: 'Poppins', Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  color: #212223 !important;
}

.cap-playlist li.active .cap-playlist-title {
  color: #d99b39 !important;
}

@media (max-width: 768px) {
  .cap-player-main,
  .top {
    text-align: center !important;
  }

  .cap-info {
    text-align: center !important;
  }

  .cap-desc,
  .cap-desc.is-collapsed,
  .cap-desc.is-expanded {
    color: #000000 !important;
  }

  .cap-read-more {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
  }

  .cap-playlist-title,
  .cap-playlist li .cap-playlist-title,
  .cap-playlist li span.cap-playlist-title,
  .cap-playlist-info .cap-playlist-title {
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    color: #212223 !important;
  }

  .cap-playlist li.active .cap-playlist-title {
    color: #d99b39 !important;
  }
}

/* 2026-06-30 final control alignment + scrollbar patch */
@media (min-width: 769px) {
  .cap-player {
    width: min(1040px, 92vw) !important;
    background: #F7F5F2 !important;
  }

  .cap-player-main,
  .top {
    grid-template-columns: 280px minmax(0, 1fr) !important;
    gap: 42px !important;
    align-items: center !important;
    max-width: 820px !important;
    margin: 0 auto !important;
    padding-right: 0 !important;
  }

  .cap-info {
    max-width: 540px !important;
    width: 100% !important;
    text-align: left !important;
  }

  .cap-audio-time-row,
  .cap-controls {
    width: 100% !important;
    max-width: 520px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .cap-controls {
    display: grid !important;
    grid-template-columns: 34px 34px 56px 34px minmax(150px, 1fr) !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 24px !important;
    margin-top: 18px !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
  }

  .cap-controls > button,
  .cap-controls .cap-icon-btn,
  .cap-controls .cap-play-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .cap-controls .cap-play-btn {
    width: 58px !important;
    min-width: 58px !important;
    height: 58px !important;
  }

  .cap-controls .cap-icon-btn img,
  .cap-controls .cap-mute-btn img,
  .cap-controls .cap-replay-btn img,
  .cap-controls .cap-prev-track img,
  .cap-controls .cap-next-track img {
    width: 25px !important;
    height: 25px !important;
    max-width: 25px !important;
    max-height: 25px !important;
  }

  .cap-controls .cap-play-btn img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }

  .cap-controls .cap-play-btn.is-playing img {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
  }

  .cap-volume-group {
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 190px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    flex: none !important;
  }

  .cap-volume-group .cap-mute-btn {
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
  }

  .cap-volume {
    flex: 1 1 auto !important;
    width: 130px !important;
    min-width: 90px !important;
    max-width: 140px !important;
  }
}

.cap-playlist::-webkit-scrollbar {
  width: 14px !important;
}
.cap-playlist::-webkit-scrollbar-thumb {
  background: #d99b39 !important;
  border-radius: 999px !important;
  border: 3px solid #f7ead8 !important;
}
.cap-playlist::-webkit-scrollbar-track {
  background: #f7ead8 !important;
  border-radius: 999px !important;
}
.cap-playlist {
  scrollbar-width: auto !important;
  scrollbar-color: #d99b39 #f7ead8 !important;
}

.cap-read-more {
  display: block !important;
  margin: 6px 0 0 0 !important;
  text-align: left !important;
  width: fit-content !important;
}

@media (max-width: 768px) {
  .cap-player {
    background: #F7F5F2 !important;
  }

  .cap-info {
    text-align: center !important;
  }

  .cap-read-more {
    display: block !important;
    margin: 5px auto 0 0 !important;
    text-align: left !important;
  }

  .cap-controls {
    display: grid !important;
    grid-template-columns: repeat(4, 34px) minmax(86px, 1fr) !important;
    align-items: center !important;
    justify-content: center !important;
    justify-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .cap-controls > button,
  .cap-controls .cap-icon-btn,
  .cap-controls .cap-play-btn {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    flex: none !important;
  }

  .cap-controls .cap-play-btn {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
  }

  .cap-controls img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
  }

  .cap-controls .cap-play-btn img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
  }

  .cap-volume-group {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 110px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    flex: none !important;
  }

  .cap-volume-group .cap-mute-btn {
    flex: 0 0 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
  }

  .cap-volume {
    flex: 1 1 auto !important;
    width: 68px !important;
    min-width: 50px !important;
    max-width: 76px !important;
  }

  .cap-playlist::-webkit-scrollbar {
    width: 10px !important;
  }
}

@media (max-width: 390px) {
  .cap-controls {
    grid-template-columns: repeat(4, 30px) minmax(74px, 1fr) !important;
    gap: 10px !important;
  }
  .cap-controls > button,
  .cap-controls .cap-icon-btn,
  .cap-controls .cap-play-btn {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
  }
  .cap-volume-group {
    max-width: 90px !important;
    gap: 4px !important;
  }
  .cap-volume {
    width: 52px !important;
    min-width: 42px !important;
    max-width: 58px !important;
  }
}

/* 2026-06-30 user requested final sizing/alignment patch */
.cap-playlist-title,
.cap-playlist li .cap-playlist-title,
.cap-playlist li span.cap-playlist-title,
.cap-playlist-info .cap-playlist-title {
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

@media (min-width: 769px) {
  .cap-player {
    width: min(980px, 90vw) !important;
    max-width: 980px !important;
  }

  .cap-player-main,
  .top {
    max-width: 780px !important;
    grid-template-columns: 250px minmax(0, 1fr) !important;
    gap: 46px !important;
    align-items: center !important;
  }

  .cap-info {
    max-width: 520px !important;
  }

  .cap-audio-time-row,
  .cap-controls {
    width: 100% !important;
    max-width: 500px !important;
  }

  .cap-controls {
    grid-template-columns: 32px 32px 46px 32px minmax(150px, 1fr) !important;
    justify-content: center !important;
    justify-items: center !important;
    align-items: center !important;
    column-gap: 24px !important;
  }

  .cap-controls > button,
  .cap-controls .cap-icon-btn {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
  }

  .cap-controls .cap-play-btn {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .cap-controls .cap-play-btn img,
  .cap-controls .cap-play-btn.is-playing img,
  .cap-controls .cap-play-btn.is-paused img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
  }

  .cap-controls .cap-icon-btn img,
  .cap-controls .cap-prev-track img,
  .cap-controls .cap-next-track img,
  .cap-controls .cap-replay-btn img,
  .cap-controls .cap-mute-btn img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
  }

  .cap-volume-group {
    max-width: 180px !important;
    gap: 10px !important;
  }

  .cap-volume {
    max-width: 132px !important;
  }
}

.cap-playlist::-webkit-scrollbar {
  width: 16px !important;
}
.cap-playlist::-webkit-scrollbar-thumb {
  border: 3px solid #f7ead8 !important;
}
.cap-playlist {
  scrollbar-width: auto !important;
}

@media (max-width: 768px) {
  .cap-playlist-title,
  .cap-playlist li .cap-playlist-title,
  .cap-playlist li span.cap-playlist-title,
  .cap-playlist-info .cap-playlist-title {
    font-size: 16px !important;
    font-weight: 600 !important;
  }

  .cap-controls {
    grid-template-columns: 30px 30px 40px 30px minmax(82px, 1fr) !important;
    max-width: 330px !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: center !important;
    justify-items: center !important;
  }

  .cap-controls > button,
  .cap-controls .cap-icon-btn {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
  }

  .cap-controls .cap-play-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .cap-controls .cap-play-btn img,
  .cap-controls .cap-play-btn.is-playing img,
  .cap-controls .cap-play-btn.is-paused img {
    width: 25px !important;
    height: 25px !important;
    max-width: 25px !important;
    max-height: 25px !important;
  }

  .cap-playlist::-webkit-scrollbar {
    width: 12px !important;
  }
}

/* 2026-06-30 final cleanup from provided plugin: image spacing, controls centering, wider playlist scrollbar */
@media (min-width: 769px) {
  .cap-player {
    width: min(960px, 90vw) !important;
    max-width: 960px !important;
    height: min(88vh, 720px) !important;
    padding: 26px 36px 0 !important;
    background: #F7F5F2 !important;
  }

  .cap-player-main,
  .top {
    width: 100% !important;
    max-width: 820px !important;
    margin: 0 auto !important;
    grid-template-columns: 260px minmax(0, 1fr) !important;
    gap: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 32px 0 36px !important;
    min-height: 360px !important;
    box-sizing: border-box !important;
  }

  .cap-cover-wrap {
    width: 260px !important;
    height: 260px !important;
    max-width: 260px !important;
    max-height: 260px !important;
    align-self: center !important;
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .cap-cover {
    width: 260px !important;
    height: 260px !important;
    max-width: 260px !important;
    max-height: 260px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    display: block !important;
  }

  .cap-info {
    width: 100% !important;
    max-width: 520px !important;
    align-self: center !important;
  }

  .cap-audio-time-row,
  .cap-controls {
    width: 100% !important;
    max-width: 500px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .cap-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    flex-wrap: nowrap !important;
    padding: 0 !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
  }

  .cap-controls > button,
  .cap-controls .cap-icon-btn,
  .cap-controls .cap-play-btn,
  .cap-volume-group .cap-mute-btn {
    flex: 0 0 auto !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  .cap-controls .cap-play-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  .cap-controls img,
  .cap-controls .cap-icon-btn img,
  .cap-controls .cap-prev-track img,
  .cap-controls .cap-next-track img,
  .cap-controls .cap-replay-btn img,
  .cap-controls .cap-mute-btn img {
    width: 23px !important;
    height: 23px !important;
    max-width: 23px !important;
    max-height: 23px !important;
    object-fit: contain !important;
    display: block !important;
  }

  .cap-controls .cap-play-btn img,
  .cap-controls .cap-play-btn.is-playing img,
  .cap-controls .cap-play-btn.is-paused img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    object-fit: contain !important;
    display: block !important;
  }

  .cap-volume-group {
    flex: 0 0 170px !important;
    width: 170px !important;
    max-width: 170px !important;
    min-width: 150px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  .cap-volume {
    flex: 1 1 auto !important;
    width: 120px !important;
    min-width: 100px !important;
    max-width: 130px !important;
  }
}

.cap-playlist {
  padding-right: 28px !important;
  scrollbar-width: auto !important;
  scrollbar-color: #d99b39 #f7ead8 !important;
}
.cap-playlist::-webkit-scrollbar {
  width: 20px !important;
}
.cap-playlist::-webkit-scrollbar-thumb {
  background: #d99b39 !important;
  border-radius: 999px !important;
  border: 4px solid #f7ead8 !important;
}
.cap-playlist::-webkit-scrollbar-track {
  background: #f7ead8 !important;
  border-radius: 999px !important;
}

@media (max-width: 768px) {
  .cap-player-main,
  .top {
    padding-top: 18px !important;
    padding-bottom: 20px !important;
  }
  .cap-cover-wrap {
    margin: 0 auto 10px !important;
  }
  .cap-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 14px auto 0 !important;
  }
  .cap-controls > button,
  .cap-controls .cap-icon-btn,
  .cap-controls .cap-play-btn,
  .cap-volume-group .cap-mute-btn {
    flex: 0 0 auto !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }
  .cap-controls .cap-play-btn {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
  }
  .cap-controls img,
  .cap-controls .cap-icon-btn img,
  .cap-controls .cap-mute-btn img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
  }
  .cap-controls .cap-play-btn img,
  .cap-controls .cap-play-btn.is-playing img,
  .cap-controls .cap-play-btn.is-paused img {
    width: 25px !important;
    height: 25px !important;
    max-width: 25px !important;
    max-height: 25px !important;
  }
  .cap-volume-group {
    flex: 0 0 92px !important;
    width: 92px !important;
    max-width: 92px !important;
    min-width: 92px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }
  .cap-volume {
    width: 58px !important;
    min-width: 52px !important;
    max-width: 58px !important;
  }
  .cap-playlist {
    padding-right: 18px !important;
  }
  .cap-playlist::-webkit-scrollbar {
    width: 14px !important;
  }
}

/* Final requested image/top spacing refinement */
@media (min-width: 769px) {
  .cap-player-main,
  .top {
    padding-top: 0 !important;
    padding-bottom: 28px !important;
    grid-template-columns: 285px minmax(0, 1fr) !important;
    gap: 46px !important;
    align-items: center !important;
    min-height: 350px !important;
  }

  .cap-cover-wrap {
    width: 285px !important;
    height: 285px !important;
    max-width: 285px !important;
    max-height: 285px !important;
    align-self: center !important;
    justify-self: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .cap-cover {
    width: 285px !important;
    height: 285px !important;
    max-width: 285px !important;
    max-height: 285px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    display: block !important;
  }
}

/* Wider, easier-to-use playlist scrollbar */
.cap-playlist {
  padding-right: 34px !important;
  scrollbar-width: auto !important;
  scrollbar-color: #d99b39 #f7ead8 !important;
}

.cap-playlist::-webkit-scrollbar {
  width: 24px !important;
}

.cap-playlist::-webkit-scrollbar-thumb {
  background: #d99b39 !important;
  border-radius: 999px !important;
  border: 5px solid #f7ead8 !important;
}

.cap-playlist::-webkit-scrollbar-track {
  background: #f7ead8 !important;
  border-radius: 999px !important;
}

@media (max-width: 768px) {
  .cap-playlist {
    padding-right: 22px !important;
  }
  .cap-playlist::-webkit-scrollbar {
    width: 16px !important;
  }
  .cap-playlist::-webkit-scrollbar-thumb {
    border-width: 3px !important;
  }
}

/* User requested mobile refinements - 2026-06 */
@media (max-width: 768px) {
  .cap-player-main,
  .cap-player .cap-player-main,
  .top {
    padding: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .cap-playlist-title,
  .cap-playlist li .cap-playlist-title,
  .cap-playlist li span.cap-playlist-title,
  .cap-playlist-info .cap-playlist-title,
  .cap-playlist li,
  .cap-playlist li span:first-child {
    font-size: 14px !important;
  }

  .cap-read-more,
  a.cap-read-more,
  button.cap-read-more {
    display: block !important;
    width: max-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}

/* Inline/page mode: same player UI displayed directly on page, not as a popup overlay. */
.cap-wrap.cap-mode-inline .cap-open-player-btn { display: none !important; }
.cap-wrap.cap-mode-inline .cap-audio-popup,
.cap-audio-popup.cap-inline {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  width: 100% !important;
  background: transparent !important;
  padding: 0 !important;
  z-index: auto !important;
  align-items: center !important;
  justify-content: center !important;
}
.cap-wrap.cap-mode-inline .cap-player,
.cap-audio-popup.cap-inline .cap-player {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  box-shadow: none !important;
  margin: 0 auto !important;
}
.cap-wrap.cap-mode-inline .cap-close,
.cap-audio-popup.cap-inline .cap-close { display: none !important; }
.cap-wrap.cap-mode-inline .cap-player { overflow: visible !important; }
.cap-wrap.cap-mode-inline .cap-playlist { max-height: 330px !important; overflow-y: auto !important; }

/* Category icon trigger shortcode */
.cap-category-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
  margin: 24px auto;
  font-family: Poppins, Inter, Arial, sans-serif;
}
.cap-category-icon {
  border: 2px solid #d99b39;
  border-radius: 14px;
  background: #fff;
  color: #212223;
  padding: 12px 14px;
  min-width: 100px;
  min-height: 82px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cap-category-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.cap-category-icon-symbol { font-size: 22px; line-height: 1; color: #d99b39; }

/* Utility hide for popup shortcode when used only as trigger target. */
.cap-wrap.cap-hidden-target .cap-open-player-btn { display: none !important; }



/* Final fixes: close button alignment and playlist-link popup search mode */
.cap-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
  font-family: Arial, Helvetica, sans-serif !important;
  box-sizing: border-box !important;
}
.cap-close:hover,
.cap-close:focus {
  background: #052B4A !important;
  color: #ffffff !important;
  outline: none !important;
}

/* When a popup is opened from a category/icon link, keep only search visible */
.cap-player.cap-playlist-link-mode .cap-filter-wrap {
  display: none !important;
}
.cap-player.cap-playlist-link-mode .cap-search-filter-row {
  justify-content: center !important;
}
.cap-player.cap-playlist-link-mode .cap-search-filter-row .cap-search {
  flex: 0 1 520px !important;
  max-width: min(520px, 86vw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 768px) {
  .cap-close {
    width: 42px !important;
    height: 42px !important;
    font-size: 26px !important;
  }
  .cap-player.cap-playlist-link-mode .cap-search-filter-row .cap-search {
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }
}

/* 2026-07 final popup polish: circular close button and centered search icon in playlist-link mode */
.cap-player .cap-close,
.cap-audio-popup .cap-close,
button.cap-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f1b16b !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-shadow: none !important;
  overflow: hidden !important;
  z-index: 20 !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: background-color .18s ease, color .18s ease, transform .18s ease !important;
}
.cap-player .cap-close::before,
.cap-audio-popup .cap-close::before,
button.cap-close::before {
  content: "×" !important;
  display: block !important;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}
.cap-player .cap-close:hover,
.cap-player .cap-close:focus,
.cap-audio-popup .cap-close:hover,
.cap-audio-popup .cap-close:focus,
button.cap-close:hover,
button.cap-close:focus {
  background: #052B4A !important;
  color: #fff !important;
  outline: none !important;
}

/* Playlist-link popup: hide filter, center the search field, and keep the search icon inside the pill */
.cap-player.cap-playlist-link-mode .cap-filter-wrap,
.cap-player.cap-playlist-link-mode .cap-filter-btn,
.cap-player.cap-playlist-link-mode .cap-filter-menu {
  display: none !important;
}
.cap-player.cap-playlist-link-mode .cap-search-filter-row {
  justify-content: center !important;
  align-items: center !important;
}
.cap-player.cap-playlist-link-mode .cap-search-filter-row::before {
  display: none !important;
  content: none !important;
}
.cap-player.cap-playlist-link-mode .cap-search-filter-row .cap-search {
  flex: 0 1 520px !important;
  width: min(520px, 86vw) !important;
  max-width: min(520px, 86vw) !important;
  margin: 0 auto !important;
  padding-left: 46px !important;
  background-color: #fff !important;
  background-repeat: no-repeat !important;
  background-position: 18px center !important;
  background-size: 16px 16px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d99b39' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m16.2 16.2 4 4'/%3E%3C/svg%3E") !important;
}

@media (max-width: 768px) {
  .cap-player .cap-close,
  .cap-audio-popup .cap-close,
  button.cap-close {
    top: 10px !important;
    right: 10px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
  }
  .cap-player .cap-close::before,
  .cap-audio-popup .cap-close::before,
  button.cap-close::before {
    font-size: 26px !important;
  }
  .cap-player.cap-playlist-link-mode .cap-search-filter-row {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .cap-player.cap-playlist-link-mode .cap-search-filter-row .cap-search {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }
}

/* Repeat / loop button states */
.cap-replay-btn {
  position: relative !important;
  transition: transform .18s ease, opacity .18s ease, color .18s ease !important;
}
.cap-replay-btn.is-repeat-all img,
.cap-replay-btn.is-repeat-one img {
  filter: brightness(0) saturate(100%) invert(58%) sepia(59%) saturate(635%) hue-rotate(355deg) brightness(90%) contrast(88%) !important;
}
.cap-replay-btn.is-repeat-all,
.cap-replay-btn.is-repeat-one {
  color: #d99b39 !important;
}
.cap-replay-btn.is-repeat-one::after {
  content: "1";
  position: absolute;
  right: 2px;
  top: 1px;
  min-width: 13px;
  height: 13px;
  padding: 0 2px;
  border-radius: 999px;
  background: #d99b39;
  color: #fff;
  font: 700 9px/13px Poppins, Arial, sans-serif;
  text-align: center;
  pointer-events: none;
}
.cap-replay-btn:hover,
.cap-replay-btn:focus-visible {
  transform: scale(1.04);
}

/* Restricted item styling in playlist */
.cap-playlist li.cap-restricted-item {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.cap-playlist li.cap-restricted-item:hover {
  opacity: 0.95;
}

.cap-playlist li.cap-restricted-item.active {
  opacity: 1;
}

.cap-playlist li.cap-restricted-item .cap-lock-icon {
  font-size: 14px;
  margin-right: 6px;
  vertical-align: middle;
}