.playlist-search {
  margin-bottom: 3rem;
}

.playlist-search__date {
  margin-top: 1rem !important;
}

.playlist-search__date button {
  appearance: none;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.playlist-search__date button:disabled {
  cursor: wait;
  opacity: 0.4;
}

.playlist-search__date-current input {
  max-width: 18rem;
}

.playlist-search__results {
  transition: opacity 150ms ease;
}

.playlist-search--loading .playlist-search__results {
  opacity: 0.45;
}

.playlist-search__table-scroll {
  /* max-height: min(65vh, 42rem); */
  max-height: min(52vh, 42rem);
  overflow-y: auto;
  border-bottom: 1px solid #ddd;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.playlist-search__table {
  width: 100%;
  border-collapse: collapse;
}

.playlist-search {
  position: relative;
  z-index: 0;
}

.playlist-search__table th,
.playlist-search__table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.playlist-search__table th:first-child,
.playlist-search__table td:first-child {
  width: 6rem;
  white-space: nowrap;
}

.playlist-search__table thead th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: #fff;
}

.playlist-search__row--selected {
  color: #fff;
  background: #005baa;
}

.playlist-search__empty,
.playlist-search__error {
  padding: 2rem 1rem;
  text-align: center;
}

@media (max-width: 40rem) {
  .playlist-search__table th,
  .playlist-search__table td {
    padding-right: 0.65rem;
    padding-left: 0.65rem;
  }

  .playlist-search__table th:first-child,
  .playlist-search__table td:first-child {
    width: 4.5rem;
  }
}

