/* Type label on music/search covers — bottom-left of cover */
.mifa-type-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #fff;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}
.mifa-type-badge--song {
  background: linear-gradient(135deg, rgba(255, 159, 26, 0.95), rgba(245, 197, 24, 0.9));
  color: #1a1200;
}
.mifa-type-badge--album {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.92), rgba(99, 102, 241, 0.9));
}
.mifa-type-badge--video {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.92), rgba(56, 189, 248, 0.88));
}

/* Search inputs: always white/readable (override dark theme black fields) */
body.dark input.mifa-search-input,
body.dark .mifa-search-input.form-control,
input.mifa-search-input,
.mifa-search-input.form-control {
  background-color: #ffffff !important;
  color: #212121 !important;
  border: 1px solid #e4e6ef !important;
  caret-color: #212121;
}
body.dark input.mifa-search-input::placeholder,
input.mifa-search-input::placeholder {
  color: #7e8299 !important;
  opacity: 1;
}
body.dark input.mifa-search-input:focus,
input.mifa-search-input:focus {
  background-color: #ffffff !important;
  color: #212121 !important;
  border-color: #8950fc !important;
  box-shadow: 0 0 0 0.15rem rgba(137, 80, 252, 0.2);
}
