/* ════════════════════════════════════════════════════════════════
   Audio Components — Waveform, BeatBars, AudioPlayer
   Matches system glass-panel aesthetic
   ════════════════════════════════════════════════════════════════ */

/* Canvas containers */
.mc-waveform-wrap,
.mc-beatbars-wrap {
  width: 100%;
  height: 60px;
  position: relative;
}

.mc-waveform-wrap canvas,
.mc-beatbars-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ────────────────────────────────────────────────────────────────
   AudioPlayer
   ──────────────────────────────────────────────────────────────── */
.mc-audio-player {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  transition: border-color 200ms ease;
}

.mc-audio-player:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.mc-ap-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mc-ap-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #2dd4bf);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms ease, box-shadow 150ms ease;
  flex-shrink: 0;
}

.mc-ap-play:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.mc-ap-info {
  flex: 1;
  min-width: 0;
}

.mc-ap-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-ap-time {
  font-size: 11px;
  font-family: 'Fira Code', monospace;
  color: #64748b;
}

.mc-ap-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mc-ap-speed {
  background: rgba(51, 65, 85, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 10px;
  font-family: 'Fira Code', monospace;
  font-weight: 600;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 150ms ease;
}

.mc-ap-speed:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.mc-ap-download {
  color: #64748b;
  font-size: 12px;
  transition: color 150ms ease;
}

.mc-ap-download:hover {
  color: #3b82f6;
}

/* Waveform + progress */
.mc-ap-wave-wrap {
  position: relative;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.mc-ap-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.mc-ap-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(51, 65, 85, 0.5);
  cursor: pointer;
}

.mc-ap-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #2dd4bf);
  border-radius: 0 2px 2px 0;
  transition: width 100ms linear;
}

.mc-ap-container {
  width: 100%;
}

/* ────────────────────────────────────────────────────────────────
   Asset gallery audio items
   ──────────────────────────────────────────────────────────────── */
.asset-gallery {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  height: 100%;
}

.asset-item {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(51, 65, 85, 0.4);
}

.asset-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.asset-video {
  width: 100%;
  max-height: 300px;
  border-radius: 6px;
}

.asset-iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 6px;
}

.asset-audio-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  background: rgba(0, 0, 0, 0.2);
}

.asset-audio {
  width: 100%;
}

.asset-label {
  padding: 6px 10px;
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
