/* VERY specific override for filter chips inside the filter container */
div[data-controller="filter"] a.badge.bg-light,
div[data-controller="filter"] a.badge.bg-light:link,
div[data-controller="filter"] a.badge.bg-light:visited,
div[data-controller="filter"] a.badge.bg-light:hover,
div[data-controller="filter"] a.badge.bg-light:active {
  color: #000 !important;                /* text color */
  --bs-badge-color: #000 !important;     /* bootstrap var */
}

/* Ensure the label span uses black too */
div[data-controller="filter"] a.badge.bg-light > span,
div[data-controller="filter"] a.badge.bg-light span {
  color: #000 !important;
}

/* Ensure SVGs and their paths use black fill */
div[data-controller="filter"] a.badge.bg-light svg,
div[data-controller="filter"] a.badge.bg-light svg * {
  color: #000 !important;
  fill: #000 !important;
  stroke: #000 !important;
}
/* Audio Player Wrapper */
.audio-wrapper {
  position: relative;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px 16px 50px; /* Extra bottom padding for controls */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

/* Audio Element */
.audio-wrapper audio {
  width: 100%;
  border-radius: 8px;
  outline: none;
  display: block;
}

/* Speed Control - repositioned below the player */
.speed-control {
  position: absolute;
  bottom: 10px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

/* Speed Buttons */
.btn-speed {
  border: none;
  background: #e9ecef;
  color: #333;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  line-height: 1;
}

.btn-speed:hover {
  background: #007bff;
  color: #fff;
}

.btn-speed.current {
  background: #007bff;
  color: #fff;
  cursor: default;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .audio-wrapper {
    padding-bottom: 60px;
  }
  .speed-control {
    bottom: 8px;
    right: 8px;
    gap: 4px;
  }
  .btn-speed {
    padding: 4px 8px;
    font-size: 12px;
  }
}
