@charset "utf-8";

/* =========================================================
   AUDIO PLAYER (DARK MODULE) — works on white or dark sites
   ========================================================= */

/* Outer wrapper */
.audio-wrap{
  max-width: 992px;
  margin: 14px auto 0;
  padding: 16px 16px 14px;
  border-radius: 16px;

  /* Force dark */
  background: #000;
  color: #fff;

  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);

  text-align: center;
}

/* Inner container */
.audio-player{
  background: #000;
  color: #fff;
}

/* Track info */
.track-info{
  margin-bottom: 10px;
  line-height: 1.2;
}

.track-title{
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
}

.track-artist{
  font-size: 14px;
  opacity: .85;
  margin-top: 4px;
  color: #fff;
}

/* ✅ FIX:
   Show native audio controls on desktop too (so it's visible even without custom UI markup) */
.audio-wrap audio{
  display: block;
  width: 100%;
  margin-top: 10px;
}

/* =========================================================
   Progress / Seek (used if you also include custom UI markup)
   ========================================================= */
#progressBar{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  outline: none;
  margin: 10px 0 6px;
  cursor: pointer;
  accent-color: #fff; /* modern browsers */
}

#progressBar::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(0,0,0,.55);
  box-shadow: 0 0 10px rgba(255,255,255,.35);
}

#progressBar::-moz-range-thumb{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(0,0,0,.55);
  box-shadow: 0 0 10px rgba(255,255,255,.35);
}

/* Time row + Play button (used if custom UI markup exists) */
.time-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  color: #fff;
  opacity: .9;
  font-size: 13px;
}

.play-toggle{
  margin-top: 12px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;

  width: 52px;
  height: 52px;

  font-size: 18px;
  cursor: pointer;

  transition: box-shadow .25s ease, transform .15s ease, border-color .2s ease, background .2s ease;
}

.play-toggle:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.65);
  box-shadow: 0 0 14px rgba(255,255,255,.35), 0 0 34px rgba(255,255,255,.18);
}

.play-toggle.is-playing{
  border-color: rgba(255,255,255,.75);
  box-shadow: 0 0 14px rgba(255,255,255,.45), 0 0 44px rgba(255,255,255,.20);
}

/* MOBILE GUARANTEE:
   You can keep this, but native controls now show everywhere anyway. */
@media (hover: none) and (pointer: coarse) {
  .audio-wrap audio{ display: block; }
  #progressBar,
  .time-row,
  .play-toggle{ display: none; }
}
