/* ==========================================================================
   ARTICLE AUDIO PLAYER BANNER (GEORGE / KOKORO TTS)
   ========================================================================== */
/* Compact bottom spacing to pair cleanly with the inline level switcher below */
.reading-audio-bar {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reading-audio-bar.playing {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.08);
}

.audio-bar-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.audio-bar-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-bar-icon {
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #e0f2fe;
  border-radius: 50%;
  flex-shrink: 0;
}

.audio-bar-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.audio-bar-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.audio-bar-voice {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.audio-bar-level-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #e2e8f0;
  color: #334155;
  letter-spacing: 0.02em;
}

.audio-bar-level-pill.level-a1 {
  background: #dcfce7;
  color: #166534;
}

.audio-bar-level-pill.level-a2 {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.audio-bar-level-pill.level-b1 {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.audio-bar-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-audio-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.2);
  flex-shrink: 0;
}

.btn-audio-play:hover {
  background: #2563eb;
  transform: scale(1.04);
}

.btn-audio-play:active {
  transform: scale(0.97);
}

/* Speed Selector Group */
.audio-speed-group {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 3px;
  flex-shrink: 0;
}

.btn-audio-speed-pill {
  border: none;
  background: transparent;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-audio-speed-pill:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.btn-audio-speed-pill.active {
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

.audio-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 180px;
}

.audio-time {
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #64748b;
  min-width: 38px;
}

.audio-track-container {
  flex: 1;
  display: flex;
  align-items: center;
}

.audio-seek-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #cbd5e1;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.audio-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.audio-seek-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.audio-seek-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

@media (max-width: 640px) {
  .reading-audio-bar {
    padding: 12px 14px;
  }
  .audio-bar-controls {
    gap: 10px;
  }
  .audio-speed-group {
    order: 2;
  }
  .audio-progress-wrap {
    order: 3;
    width: 100%;
    min-width: 100%;
  }
}
