/* ========================================
   EBP Audio Player
   ======================================== */

.ebp-audio {
  --_navy: #060A40;
  --_gold: #CA9D5A;
  --_bg: #ffffff;
  --_track-bg: #D1D1D6;
  --_radius: 60px;
  --_btn-size: 68px;
  --progress: 0%;

  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--_bg);
  border-radius: var(--_radius);
  padding: 16px 24px 16px 44px;
  max-width: 640px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

/* ---- Play / Pause button ---- */

.ebp-audio__play {
  flex-shrink: 0;
  width: var(--_btn-size);
  height: var(--_btn-size);
  border-radius: 50%;
  border: none;
  background: var(--_navy);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -70px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.ebp-audio__play:hover {
  background: #0d1260;
}

.ebp-audio__play:active {
  transform: scale(0.95);
}

.ebp-audio__icon {
  width: 28px;
  height: 28px;
}

.ebp-audio__icon--play {
  margin-left: 3px;
}

/* ---- Body (meta + controls) ---- */

.ebp-audio__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---- Meta ---- */

.ebp-audio__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ebp-audio__title {
  font-size: 20px;
  font-weight: 500;
  color: var(--_gold);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ebp-audio__subtitle {
  font-size: 12px;
  font-weight: 400;
  color: var(--_navy);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Controls row ---- */

.ebp-audio__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- Time ---- */

.ebp-audio__time {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--_navy);
  min-width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---- Seek bar (range input) ---- */

.ebp-audio__seek {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--_navy) 0%,
    var(--_navy) var(--progress),
    var(--_track-bg) var(--progress),
    var(--_track-bg) 100%
  );
  transition: background 0.05s linear;
}

/* Webkit thumb */
.ebp-audio__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 10px;
  border-radius: 5px;
  background: var(--_navy);
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.ebp-audio__seek::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Firefox thumb */
.ebp-audio__seek::-moz-range-thumb {
  width: 18px;
  height: 10px;
  border-radius: 5px;
  background: var(--_navy);
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Firefox track */
.ebp-audio__seek::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--_track-bg);
}

.ebp-audio__seek::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--_navy);
}

/* ---- Responsive ---- */

@media (max-width: 480px) {
  .ebp-audio {
    --_btn-size: 56px;
    gap: 12px;
    padding: 12px 16px 12px 38px;
  }

  .ebp-audio__play {
    margin-left: -46px;
  }

  .ebp-audio__title {
    font-size: 16px;
  }

  .ebp-audio__subtitle {
    font-size: 11px;
  }

  .ebp-audio__icon {
    width: 24px;
    height: 24px;
  }
}
