/* ===== WAVEFORM AUDIO PLAYER ===== */
.wap-wrap {
  max-width: 100%;
  margin: 0 auto;
  font-family: inherit;
}

/* Player card */
.wap-player {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #e8f5ee 0%, #eaf4f0 40%, #e8f0f8 100%);
  border-radius: 16px;
  padding: 15px 22px;
  cursor: pointer;
  user-select: none;
}

/* Play / Pause button */
.wap-btn {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1a6b4a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(26,107,74,0.35);
}
.wap-btn:hover { background: #15563c; transform: scale(1.05); }
.wap-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
/* pause icon: two rectangles */
.wap-icon-pause { display: none; }
.wap-playing .wap-icon-play  { display: none; }
.wap-playing .wap-icon-pause { display: block; }

/* Waveform container */
.wap-wave {
  flex: 1;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 2.5px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Individual bars */
.wap-bar {
  flex-shrink: 0;
  width: 3px;
  border-radius: 2px;
  background: #b0c4bb;
  transition: background 0.1s;
}
/* Played portion */
.wap-bar.played { background: #1a6b4a; }

/* Time display */
.wap-time {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: #1a6b4a;
  white-space: nowrap;
  min-width: 72px;
  text-align: right;
}
.wap-time span { color: #999; font-weight: 400; }

/* Hidden audio element */
.wap-audio { display: none; }

/* Responsive */
@media (max-width: 480px) {
  .wap-player { padding: 12px 14px; gap: 12px; }
  .wap-btn { width: 44px; height: 44px; }
  .wap-btn svg { width: 18px; height: 18px; }
  .wap-time { font-size: 12px; min-width: 58px; }
}
