@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap");

.ccap-player {
  --ccap-ink: #1b2b21;
  --ccap-ink-soft: rgba(27, 43, 33, 0.6);
  --ccap-bg: #f7fff9;
  --ccap-accent: #1fb446;
  --ccap-accent-2: #149a3a;
  --ccap-stroke: rgba(31, 180, 70, 0.4);
  --ccap-highlight: rgba(255, 255, 255, 0.85);
  position: relative;
  border-radius: 20px;
  padding: 4px;
  background: #1fb446;
  box-shadow: 0 10px 22px rgba(17, 102, 40, 0.2);
  overflow: visible;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ccap-ink);
  width: 100%;
  max-width: 100%;
  margin: 8px 0 12px;
  box-sizing: border-box;
}

.ccap-player::before,
.ccap-player::after {
  content: "";
  position: absolute;
  inset: auto auto -90px -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.ccap-player::after {
  inset: -80px -80px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), transparent 70%);
}

.ccap-frame {
  position: relative;
  display: block;
  z-index: 1;
  background: #edf2ef;
  border-radius: 14px;
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(31, 180, 70, 0.2);
  overflow: hidden;
}

.ccap-shell {
  position: relative;
  display: grid;
  gap: 8px;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px 8px;
  box-shadow: 0 6px 14px rgba(21, 120, 50, 0.12);
}

.ccap-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ccap-main-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  width: 36px;
}

.ccap-main-eq span {
  width: 4px;
  height: 8px;
  background: rgba(31, 180, 70, 0.45);
  border-radius: 2px;
  animation: ccap-eq 0.8s infinite ease-in-out;
  animation-play-state: paused;
}

.ccap-player.is-playing .ccap-main-eq span {
  animation-play-state: running;
}

.ccap-main-eq span:nth-child(2) {
  animation-delay: 0.1s;
}

.ccap-main-eq span:nth-child(3) {
  animation-delay: 0.2s;
}

.ccap-main-eq span:nth-child(4) {
  animation-delay: 0.3s;
}

.ccap-main-eq span:nth-child(5) {
  animation-delay: 0.4s;
}

.ccap-play {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: #1fb446;
  box-shadow: 0 10px 18px rgba(31, 180, 70, 0.35);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ccap-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-35%, -50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #ffffff;
}

.ccap-player.is-playing .ccap-play::before {
  width: 16px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: none;
  background: linear-gradient(
    90deg,
    #ffffff 0 35%,
    transparent 35% 55%,
    #ffffff 55% 90%,
    transparent 90%
  );
}

.ccap-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(31, 180, 70, 0.4);
}

.ccap-transport {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 6px;
  align-items: center;
  flex: 1;
}

.ccap-times {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.ccap-current,
.ccap-duration {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ccap-ink);
}

.ccap-duration {
  margin-left: auto;
  text-align: right;
}

.ccap-track {
  display: flex;
  align-items: center;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  max-width: none;
}

.ccap-track input[type="range"] {
  width: 100%;
  appearance: none;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ccap-accent) 0%, #d6f2dc 0%);
  border: none;
}

.ccap-track input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1fb446;
  border: 3px solid #fff;
  box-shadow: 0 6px 12px rgba(31, 180, 70, 0.35);
  cursor: pointer;
}

.ccap-track input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1fb446;
  border: 3px solid #fff;
  box-shadow: 0 6px 12px rgba(31, 180, 70, 0.35);
  cursor: pointer;
}

.ccap-mute {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: #e7f7eb;
  position: relative;
  cursor: pointer;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.ccap-mute-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 12px;
  background: var(--ccap-accent);
  clip-path: polygon(0 20%, 45% 20%, 75% 0, 75% 100%, 45% 80%, 0 80%);
}

.ccap-mute-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ccap-accent);
  border-left: none;
  border-top: none;
  border-radius: 0 10px 10px 0;
  transform: translateY(-50%);
}

.ccap-player.is-user-muted .ccap-mute-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 2px;
  background: var(--ccap-accent);
  transform: rotate(-35deg);
}

.ccap-player.is-user-muted .ccap-transport {
  opacity: 0.55;
}

.ccap-volume-wrap {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 36px;
  padding: 2px 0;
  background: #e7f7eb;
  border-radius: 10px;
}

.ccap-volume {
  appearance: none;
  width: 32px;
  height: 2px;
  transform: rotate(-90deg);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ccap-accent-2) 60%, #d6f2dc 60%);
  border: none;
}

.ccap-volume::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ccap-accent-2);
  border: 2px solid #fff;
}

.ccap-volume::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ccap-accent-2);
  border: 2px solid #fff;
}

.ccap-player.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.mejs-container {
  display: none !important;
}

.et_pb_audio,
.et_pb_audio_module,
.et_pb_audio .et_pb_audio_content,
.et_pb_audio_module .et_pb_audio_content {
  height: auto !important;
  overflow: visible !important;
}

@media (max-width: 720px) {
  .ccap-player {
    padding: 5px;
  }

  .ccap-main {
    flex-direction: column;
    align-items: stretch;
  }

  .ccap-transport {
    grid-template-columns: 1fr auto auto;
  }

  .ccap-times {
    justify-content: space-between;
  }
}
.ccap-mixer-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 2px;
  gap: 10px;
  align-items: center;
}

.ccap-mixer {
  border-radius: 10px 10px 10px 4px;
  padding: 8px 12px;
  border: none;
  background: #1fb446;
  color: #fff;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(31, 180, 70, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ccap-mixer-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-top: -2px;
}

.ccap-mixer.is-active .ccap-mixer-icon {
  transform: rotate(-135deg);
  margin-top: 0;
}

.ccap-sync {
  border-radius: 10px;
  padding: 8px 12px;
  border: none;
  background: #e7f7eb;
  color: #1b2b21;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(31, 180, 70, 0.3);
  display: none;
}

.ccap-ios .ccap-sync {
  display: inline-flex;
}

.ccap-mixer-panel {
  background: #edf2ef;
  border-radius: 12px;
  margin-top: -2px;
  padding: 0 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.ccap-player.is-mixer-open .ccap-mixer-panel {
  max-height: 260px;
  padding: 10px 12px 22px;
}

.ccap-track-row {
  display: grid;
  grid-template-columns: auto 1fr 46px minmax(160px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(31, 180, 70, 0.12);
  font-size: 12px;
  position: relative;
}

.ccap-track-row:first-child {
  border-top: none;
}

.ccap-track-row.is-muted .ccap-track-status {
  color: rgba(27, 43, 33, 0.5);
}

.ccap-track-row.is-muted .ccap-track-label {
  color: rgba(27, 43, 33, 0.5);
}

.ccap-track-row.is-muted .ccap-track-volume {
  opacity: 0.5;
}

.ccap-track-row.is-disabled {
  opacity: 0.4;
}

.ccap-track-label {
  justify-self: start;
}

.ccap-track-mute {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(31, 180, 70, 0.2);
  justify-self: start;
  z-index: 2;
}

.ccap-track-mute.is-on .ccap-track-icon {
  background: var(--ccap-accent);
}

.ccap-track-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 10px;
  background: rgba(31, 180, 70, 0.4);
  clip-path: polygon(0 20%, 45% 20%, 75% 0, 75% 100%, 45% 80%, 0 80%);
}

.ccap-track-mute {
  position: relative;
}

.ccap-track-row.is-muted .ccap-track-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 2px;
  background: var(--ccap-accent);
  transform: rotate(-35deg);
}

.ccap-track-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  justify-content: center;
}

.ccap-track-eq span {
  width: 3px;
  height: 6px;
  background: rgba(31, 180, 70, 0.35);
  border-radius: 2px;
  animation: ccap-eq 0.9s infinite ease-in-out;
  animation-play-state: paused;
}

.ccap-track-row.is-playing .ccap-track-eq span {
  animation-play-state: running;
}

.ccap-track-row.is-muted .ccap-track-eq span {
  opacity: 0.4;
}

.ccap-track-eq span:nth-child(2) {
  animation-delay: 0.1s;
}

.ccap-track-eq span:nth-child(3) {
  animation-delay: 0.2s;
}

.ccap-track-eq span:nth-child(4) {
  animation-delay: 0.3s;
}

.ccap-track-volume {
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ccap-accent-2) 60%, #d6f2dc 60%);
  border: none;
  z-index: 1;
  min-width: 140px;
}

.ccap-track-volume::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ccap-accent-2);
  border: 2px solid #fff;
}

.ccap-track-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ccap-accent-2);
  border: 2px solid #fff;
}

.ccap-player.is-mixer-open {
  margin-bottom: 12px;
}

.et_pb_audio_module .ccap-player,
.et_pb_audio .ccap-player {
  display: block;
  clear: both;
}

.et_pb_audio_module,
.et_pb_audio,
.et_pb_audio_module .et_pb_audio_content,
.et_pb_audio .et_pb_audio_content,
.et_pb_audio_module .et_pb_audio_content_container,
.et_pb_audio .et_pb_audio_content_container {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.et_pb_audio_module .et_pb_audio_content_container,
.et_pb_audio .et_pb_audio_content_container {
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .ccap-player {
    margin-left: 0;
    margin-right: 0;
  }

  .ccap-main-eq,
  .ccap-track-eq {
    display: none;
  }

  .ccap-track-row {
    grid-template-columns: auto 1fr minmax(140px, 1fr) auto;
  }

  .ccap-mixer-row,
  .ccap-mixer-panel {
    display: none;
  }
}

.ccap-track-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(27, 43, 33, 0.7);
  justify-self: end;
}

@keyframes ccap-eq {
  0% {
    height: 4px;
  }
  50% {
    height: 14px;
  }
  100% {
    height: 6px;
  }
}
