/* Enhanced custom audio player UI — Chrome-inspired */

.sap-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f7f7f7;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 32px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.9),
			  0 1px 3px rgba(0,0,0,0.08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  max-width: 100%;
  transition: background 0.2s ease;
}
.sap-wrapper:hover {
  background: #f2f2f2;
}

/* Play / pause button */
.sap-play {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: none;
  border-radius: 9999px;
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), inset 0 0 0 1px rgba(0,0,0,0.05);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: background 0.2s, box-shadow 0.2s;
}
.sap-play:hover {
  background: #fafafa;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.sap-wrapper.is-playing .sap-play {
  background: #e8e8e8;
}

/* Middle section (progress + time) */
.sap-middle {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.sap-progress {
  width: 100%;
  height: 6px;
  background: rgba(0,0,0,0.1);
  border-radius: 9999px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.sap-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #007aff, #00aaff);
  border-radius: 9999px;
  transition: width 0.1s linear;
}
.sap-time {
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  letter-spacing: 0.2px;
}

/* Volume slider */
.sap-right {
  flex: 0 0 90px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.sap-vol {
  width: 80px;
  height: 6px;
  accent-color: #007aff;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .sap-right { display: none; }
  .sap-wrapper { padding: 10px; border-radius: 24px; }
  .sap-play { padding: 8px 12px; font-size: 13px; }
}
