.ban-mark {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.details-tags {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  column-gap: 6px;
  margin: 14px 0 0;
}
.details-tags:not([hidden]) ~ .details-actions {
  margin-top: 6px;
}
.category-label {
  appearance: none;
  display: flex;
  align-items: center;
  max-width: 100%;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.category-face {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    background 160ms var(--ease),
    color 160ms var(--ease),
    border-color 160ms var(--ease);
}
.category-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-face .ban-mark {
  display: none;
  width: 12px;
  height: 12px;
  margin-left: -2px;
}
.category-label[data-state] .ban-mark {
  display: block;
}
.category-label:hover .category-face {
  border-color: var(--focus);
}
.category-label:focus-visible {
  outline: none;
}
.category-label:focus-visible .category-face {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.category-label[data-state="marked"] .category-face {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.category-label[data-state="hidden"] .category-face {
  color: var(--muted);
}
@media (pointer: coarse) {
  .category-label {
    min-height: 44px;
  }
  .category-face {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }
  .category-face .ban-mark {
    width: 13px;
    height: 13px;
  }
}
/* Short screens scroll Song details as one, so the labels stay reachable. */
@media (max-height: 500px) {
  #song-details {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  #song-details .details-body {
    flex: none;
    overflow: visible;
  }
}

.hidden-count {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: none;
  min-width: 36px;
  min-height: 36px;
  margin-left: auto;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color 160ms;
}
.hidden-count .ban-mark {
  width: 13px;
  height: 13px;
}
.hidden-count:hover {
  color: var(--ink);
}
.hidden-count[aria-expanded="true"] {
  color: var(--active);
}
.station-sidebar .hidden-count:focus-visible,
.toast .hidden-count:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
  border-radius: 8px;
}
.toast .hidden-count {
  min-width: 44px;
  min-height: 44px;
  margin-left: 0;
  padding: 0 8px;
  font-size: 12px;
  color: var(--ink);
}
.categories-notice-text {
  margin-right: 8px;
}
/* The narrowest phones wrap this message to three lines; tighter type keeps
   it inside the free band above the composer, clear of the seek bar. */
@media (max-width: 359px) {
  .toast.categories-notice {
    padding: 2px 2px 2px 14px;
    font-size: 12px;
    line-height: 1.3;
  }
  .categories-notice-text {
    margin-right: 4px;
  }
}
@media (pointer: coarse) {
  .hidden-count {
    min-width: 44px;
    min-height: 44px;
  }
}
/* The theme button's 44px target reaches below this row's right end on
   phones, so the row stops short of it while the count shows. Zero
   specificity keeps the existing short-screen limits. */
@media (max-width: 699px) {
  :where(.listener-identity:has(> .hidden-count:not([hidden]))) {
    max-width: calc(100% - 44px);
  }
}

.hidden-category-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}
.hidden-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  min-height: 32px;
}
.hidden-category-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.hidden-category-restore {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.hidden-category-restore svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.hidden-category-restore:hover {
  color: var(--ink);
}
.station-sidebar .hidden-category-restore:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -4px;
  border-radius: 8px;
}
@media (pointer: coarse) {
  .hidden-category {
    min-height: 44px;
  }
  .hidden-category-restore {
    width: 44px;
    height: 44px;
  }
}
