.playlist-filter-option-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.playlist-toggle-tooltip-anchor {
  position: relative;
  display: inline-flex;
  min-width: 0;
}

.playlist-toggle-row {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(132, 170, 251, 0.5);
  border-radius: 8px;
  background: #282626;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.playlist-description-toggle-field:hover .playlist-description-toggle-row {
  border-color: rgba(132, 170, 251, 1);
}

.playlist-toggle-tooltip-anchor:hover .playlist-toggle-row,
.playlist-toggle-tooltip-anchor:focus-visible .playlist-toggle-row,
.playlist-toggle-tooltip-anchor.is-tooltip-open .playlist-toggle-row {
  border-color: rgba(132, 170, 251, 0.9);
  background: rgba(40, 38, 38, 0.98);
}

.playlist-flag-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.playlist-flag-toggle-box {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 4px;
  border: 1px solid rgba(132, 170, 251, 0.55);
  background: #282626;
  box-sizing: border-box;
}

.playlist-flag-toggle-input:checked + .playlist-flag-toggle-box {
  border-color: rgba(132, 170, 251, 0.95);
  background: rgba(132, 170, 251, 0.14);
}

.playlist-flag-toggle-input:checked + .playlist-flag-toggle-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #84aafb;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.playlist-flag-toggle-text {
  min-width: 0;
  font-size: 13px;
  line-height: 1.2;
  color: #f3f3f3;
}

.playlist-meta-tooltip-anchor.playlist-toggle-tooltip-anchor .playlist-genres-tooltip.playlist-toggle-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  right: auto;
  bottom: auto;
  width: max-content;
  min-width: 0;
  max-width: min(280px, calc(100vw - 24px));
  padding: 8px 10px;
  white-space: normal;
  text-align: center;
  transform: translateX(-50%) translateY(6px);
}

.playlist-meta-tooltip-anchor.playlist-toggle-tooltip-anchor:hover > .playlist-genres-tooltip.playlist-toggle-tooltip,
.playlist-meta-tooltip-anchor.playlist-toggle-tooltip-anchor:focus-within > .playlist-genres-tooltip.playlist-toggle-tooltip,
.playlist-meta-tooltip-anchor.playlist-toggle-tooltip-anchor.is-tooltip-open > .playlist-genres-tooltip.playlist-toggle-tooltip {
  transform: translateX(-50%) translateY(0);
}

.playlist-meta-tooltip-anchor.playlist-toggle-tooltip-anchor .playlist-genres-tooltip.playlist-toggle-tooltip .playlist-genres-tooltip-title {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.curators-catalog-panel .curators-toggle-field {
  flex: 0 0 auto;
  min-width: 0;
}

.curators-filter-select .playlist-filter-menu {
  max-width: min(340px, calc(100vw - 24px));
}

.playlist-catalog-panel .custom-select,
.playlist-catalog-panel .custom-select .selected,
.playlist-catalog-panel .playlist-range-box {
  height: 42px;
}

.playlist-catalog-panel .custom-select .selected,
.playlist-catalog-panel .playlist-range-box {
  box-sizing: border-box;
}

.playlist-catalog-panel .playlist-range-box,
.curators-catalog-panel .curators-follower-range-box {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.range-tooltip-anchor {
  position: relative;
  display: inline-flex;
  width: auto;
  max-width: 100%;
}

.range-tooltip-anchor::before,
.range-tooltip-anchor::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  height: 12px;
  z-index: 79;
}

.range-tooltip-anchor::after {
  top: 100%;
}

.range-tooltip-anchor::before {
  bottom: 100%;
}

.playlist-meta-tooltip-anchor.range-tooltip-anchor > .playlist-genres-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: auto;
  max-width: calc(100vw - 16px);
}

.range-tooltip-trigger,
.playlist-range-inline.range-tooltip-trigger,
.curators-range-inline.range-tooltip-trigger {
  min-height: 42px;
  width: auto;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(132, 170, 251, 0.5);
  border-radius: 8px;
  background: #282626;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  cursor: default;
  white-space: nowrap;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.range-tooltip-anchor:hover .range-tooltip-trigger,
.range-tooltip-anchor:focus-within .range-tooltip-trigger,
.range-tooltip-anchor.is-tooltip-open .range-tooltip-trigger {
  border-color: rgba(132, 170, 251, 0.9);
  background: rgba(40, 38, 38, 0.98);
}

.range-tooltip-word {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}

.range-slider-tooltip {
  display: inline-block;
  padding: 12px;
  z-index: 80;
}

.range-slider-tooltip .dual-range {
  width: min(320px, calc(100vw - 40px));
  margin-top: 4px;
}

.playlist-range-box,
.curators-follower-range-box {
  min-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  width: auto;
}

.playlist-range-inline,
.curators-range-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: auto;
  max-width: 100%;
}

.playlist-range-value,
.curators-range-value {
  min-width: var(--range-side-width, 0px);
  width: var(--range-side-width, auto);
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(132, 170, 251, 0.225);
  border-radius: 6px;
  background: rgba(132, 170, 251, 0.04);
  font-size: 13px;
  line-height: 1.2;
  color: #f3f3f3;
  white-space: nowrap;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.playlist-range-value--min,
.playlist-range-value--max {
  text-align: center;
}

.playlist-range-value.range-value-button,
.curators-range-value.range-value-button {
  width: var(--range-side-width, auto);
  max-width: none;
  min-width: var(--range-side-width, 0px);
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(132, 170, 251, 0.225);
  border-radius: 6px;
  cursor: text;
  background: rgba(132, 170, 251, 0.04);
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.playlist-range-value.range-value-button:hover,
.curators-range-value.range-value-button:hover {
  border-color: rgba(132, 170, 251, 0.45);
  background: rgba(132, 170, 251, 0.08);
}

.playlist-range-value.range-value-button:focus-visible,
.curators-range-value.range-value-button:focus-visible {
  outline: none;
  border-color: rgba(132, 170, 251, 0.8);
  background: rgba(132, 170, 251, 0.12);
}

.playlist-range-value.range-value-button.is-editing,
.curators-range-value.range-value-button.is-editing {
  padding: 0 8px;
  border-color: rgba(132, 170, 251, 0.8);
  background: rgba(132, 170, 251, 0.12);
}

.playlist-range-value .range-value-edit,
.playlist-range-value--max .range-value-edit,
.curators-range-value .range-value-edit,
.curators-range-value--max .range-value-edit {
  width: 100%;
  min-width: 0;
  height: 100%;
  text-align: center;
  box-sizing: border-box;
}

.playlist-results-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  scrollbar-gutter: stable;
}

.playlist-results-scroll::-webkit-scrollbar {
  width: 12px;
}

.playlist-results-scroll::-webkit-scrollbar-track {
  background: #282626;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.playlist-results-scroll::-webkit-scrollbar-thumb {
  background: #383838;
  border-top-left-radius: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 0;
  border: 2px solid #282626;
}

.playlist-results-scroll::-webkit-scrollbar-button {
  display: none;
}

.playlist-catalog-controls #playlist-summary {
  margin: 0;
  flex: 1 1 auto;
}

.playlist-results-scroll #playlist-no-results {
  margin: 0 0 12px;
}

@media (max-width: 1180px) {
  .playlist-catalog-panel .field.small,
  .playlist-catalog-panel .slider-field,
  .playlist-genres-field,
  .playlist-catalog-panel .playlist-toggle-field,
  .playlist-catalog-panel .playlist-filter-field,
  .curators-catalog-panel .curators-toggle-field {
    flex: 1 1 280px;
    min-width: 220px;
  }
}

@media (max-width: 980px) {
  .catalog-summary-row {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-sort-dir-inline {
    justify-content: flex-start;
  }

  .playlist-catalog-panel .field.small,
  .playlist-catalog-panel .slider-field,
  .playlist-genres-field,
  .playlist-catalog-panel .playlist-toggle-field,
  .playlist-catalog-panel .playlist-filter-field,
  .curators-catalog-panel .curators-toggle-field {
    flex: 1 1 100%;
    min-width: 0;
  }

  .playlist-filter-select,
  .playlist-filter-trigger {
    width: 100%;
  }

  .playlist-range-inline.range-tooltip-trigger,
  .curators-range-inline.range-tooltip-trigger {
    width: 100%;
    justify-content: space-between;
  }
}

.search-intro {
  width: min(100%, 760px);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  text-align: center;
}

.search-intro.hidden {
  display: none;
}

.search-intro-title {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
}

.search-intro-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 620px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.search-intro-note i {
  color: #1ed760;
  font-size: 14px;
  line-height: 1;
}

.search-intro-corner-pointer {
  position: absolute;
  top: 18px;
  right: calc((var(--top-search-width, 320px) - 116px) / 2);
  width: 116px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  color: var(--muted);
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.search-intro-corner-pointer-label {
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  color: rgba(243, 243, 243, 0.82);
}

.search-intro-corner-pointer-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.search-intro-corner-pointer-line {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, rgba(215, 218, 139, 0.15) 0%, rgba(215, 218, 139, 0.75) 100%);
  animation: searchIntroLinePulse 1.6s ease-in-out infinite;
}

.search-intro-corner-pointer-icon {
  font-size: 21px;
  line-height: 1;
  color: var(--accent-2);
  filter: drop-shadow(0 0 8px rgba(215, 218, 139, 0.18));
  animation: searchIntroArrowBounce 1.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes searchIntroArrowBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.88;
  }
  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

@keyframes searchIntroLinePulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scaleY(0.92);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

#tab-search {
  overflow: hidden;
}

#tab-search > .tab-pane-section {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 0;
  min-height: 100%;
  height: 100%;
}

