/* audio-embed.css (v5) */
/* CA-styled audio card: off-white card, speaker photo left, timeline right,
   and a centered PLAY/PAUSE button BELOW the timeline. */

*,
*::before,
*::after { box-sizing: border-box; }

.audio-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.audio-card {
  background: #faf9f6;
  border-radius: 14px;
  border: 2px solid #c5af71;   /* gold border */
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  padding: 0.75rem 1rem;
  max-width: 400px;
  margin: 0 auto;
}



.audio-player {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Speaker photo */
.audio-photo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.audio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right side area */
.audio-right {
  flex: 1 1 auto;
  min-width: 200px;
}

/* Timeline */
/* Groove (track) */
.audio-timeline {
  position: relative;
  height: 8px;                 /* or 10px if you prefer */
  background: #4b3621;         /* dark chocolate */
  border-radius: 999px;
  overflow: visible;           /* <-- was hidden; this is the key */
  cursor: pointer;
  z-index: 0;                  /* base layer */
}
.audio-progress {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(145deg, #bfa75e, #a88c45); /* gold gradient */
  border-radius: 999px;
  z-index: 1;                  /* above groove */
}

/* Playhead (knob) */
.audio-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;                 /* or 16px if you like the larger bead */
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d8c891, #b89f52);
  box-shadow: 0 2px 3px rgba(0,0,0,0.6), 0 0 2px rgba(255,255,255,0.3) inset;
  left: 0%;
  pointer-events: none;
  z-index: 3;                  /* above progress & groove */
}



/* Time row */
.audio-time {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  font: 13px/1.2 Arial, sans-serif;
  color: #333;
}

/* Controls centered below */
.audio-controls {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* PLAY/PAUSE button */
.audio-icon {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #d8c891, #b89f52); /* gold gradient */
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);               /* subtle depth */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.audio-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);                /* stronger hover */
}

.audio-icon:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);                /* pressed effect */
}

.audio-icon svg {
  width: 18px;   /* scaled for smaller button */
  height: 18px;
  fill: #fff;    /* white icon for contrast */
}




.audio-error {
  margin-top: 8px;
  font: 12px/1.3 Arial, sans-serif;
  color: #b00020;
  text-align: center;
  display: none;
}
