/**
 * FMS Native Audio Player
 * Строгий плоский минимализм: zero emojis, crisp typography, accessible controls
 */

.fms-audio-card {
  margin-top: 18px;
  width: 100%;
  max-width: 480px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  font-family: inherit;
}

.fms-audio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fms-audio-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fms-audio-title {
  font-size: 16px;
  font-weight: 400;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.fms-audio-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  letter-spacing: 0.01em;
}

.fms-audio-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #eef8fa;
  color: #0a4f5c;
  border: 1px solid #bce2ea;
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}

.fms-audio-controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fms-audio-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0a4f5c;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.fms-audio-play-btn:hover {
  background: #083d47;
  transform: scale(1.04);
}

.fms-audio-play-btn:active {
  transform: scale(0.96);
}

.fms-audio-play-icon,
.fms-audio-pause-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.fms-audio-track-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fms-audio-slider-wrap {
  position: relative;
  width: 100%;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.fms-audio-slider-bg {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: #e2e8f0;
  border-radius: 0;
  overflow: hidden;
}

.fms-audio-slider-progress {
  height: 100%;
  width: 0%;
  background: #0a4f5c;
  border-radius: 0;
  transition: width 0.05s linear;
}

.fms-audio-range-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.fms-audio-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.fms-audio-speed-btn {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #475569;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 0;
  cursor: pointer;
  line-height: 1.3;
}

.fms-audio-speed-btn:hover {
  border-color: #0a4f5c;
  color: #0a4f5c;
}
