@media (max-width: 900px) {
  .search-head-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .search-head-cover {
    width: 88px;
    min-width: 88px;
    height: 88px;
  }

  .search-head-title {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .artist-search-head {
    --artist-head-photo-size: 120px;
  }

  .artist-search-head-main {
    grid-template-rows: auto auto;
  }

  .artist-search-head-body-row {
    grid-template-columns: 1fr;
  }

  .artist-search-head .search-head-cover {
    max-width: var(--artist-head-photo-size);
  }

  .artist-search-head-stats-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .artist-search-head-stat-slot--latest {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  #tab-search > .tab-pane-section {
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  #tab-search > .tab-pane-section.is-search-intro-only {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .search-intro-corner-pointer {
    top: 14px;
    right: 14px;
    width: 104px;
  }

  .search-intro-corner-pointer-label {
    font-size: 11px;
  }

  .search-head-card {
    grid-template-columns: 1fr;
  }

  .search-head-cover {
    width: 100%;
    min-width: 0;
    max-width: 120px;
    height: 120px;
  }

  .search-head-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-head-action {
    width: 34px;
    height: 34px;
  }

  .search-head-stat {
    flex-basis: auto;
    width: auto;
    max-width: 100%;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.field.small {
  flex: 0 0 190px;
}

.slider-field {
  flex: 1 1 240px;
  min-width: 230px;
}

.range-box {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(132, 170, 251, 0.5);
  border-radius: 8px;
  background: #282626;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}


.range-value-edit {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  border-radius: 0;
  background: transparent;
  color: #f3f3f3;
  font-family: var(--app-font-family);
  font-size: inherit;
  line-height: inherit;
  text-align: center;
  box-sizing: border-box;
}


.dual-range {
  position: relative;
  height: 18px;
}

.dual-range::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 4px;
  border-radius: 999px;
  background: #555;
}

.dual-range-fill {
  position: absolute;
  top: 7px;
  height: 4px;
  border-radius: 999px;
  background: #84aafb;
  pointer-events: none;
}

.dual-range input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.dual-range input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border: 0;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #84aafb;
  cursor: pointer;
  pointer-events: auto;
  margin-top: -5px;
}

.dual-range input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
  border: 0;
}

.dual-range input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #84aafb;
  cursor: pointer;
  pointer-events: auto;
}

.field-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.custom-select {
  position: relative;
  width: 100%;
  background-color: rgba(53, 53, 60, 0.55);
  border: 1px solid rgba(132, 170, 251, 0.5);
  border-radius: 8px;
  font-family: var(--app-font-family);
  user-select: none;
  transition: border-color 0.3s ease;
  background-image: var(--grain-bg);
  background-size: 160px 160px;
  background-blend-mode: overlay;
}

.custom-select:hover {
  border-color: rgba(132, 170, 251, 1);
}

.custom-select.open {
  border-radius: 8px;
  border-color: rgba(132, 170, 251, 1);
}

.custom-select.floating-open {
  border-color: rgba(132, 170, 251, 1);
}

.custom-select,
.custom-select .options-container {
  box-sizing: border-box;
  width: 100%;
}

.custom-select .selected {
  position: relative;
  padding: 10px 30px 10px 10px;
  cursor: pointer;
  color: #f3f3f3;
  font-size: 14px;
  transition: border-radius 0.2s ease;
  background-clip: padding-box;
  border-radius: 8px;
  min-height: 42px;
  display: flex;
  align-items: center;
}

.custom-select .selected::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.95;
  transition: transform 0.18s ease;
  background: no-repeat center / contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24"><path d="M7 9l5 6 5-6" fill="none" stroke="%2384aafb" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.custom-select.open .selected::after {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select.open .selected {
  background-color: rgba(132, 170, 251, 0.2);
  border-radius: 8px;
}

.custom-select .options-container {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: max-content;
  min-width: 100%;
  max-width: min(calc(100vw - 24px), 720px);
  border: 1px solid rgba(132, 170, 251, 1);
  border-radius: 8px;
  font-size: 14px;
  display: none;
  flex-direction: column;
  z-index: 50;
  overflow: hidden;
  background-color: rgba(53, 53, 60, 0.55);
  background-image: var(--grain-bg);
  background-size: 20px 20px;
  background-blend-mode: overlay;
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  max-height: min(360px, calc(100vh - 24px));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: auto;
  padding: 0;
}

.custom-select .option {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  cursor: pointer;
  color: #f3f3f3;
  white-space: nowrap;
}

.custom-select .option:hover {
  background-color: #282626;
}

    .custom-select-floating {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  border: 1px solid rgba(132, 170, 251, 1);
  border-radius: 8px;
  font-size: 14px;
  display: none;
  flex-direction: column;
  z-index: 4000;
  overflow: hidden;
  background-color: rgba(53, 53, 60, 0.55);
  background-image: var(--grain-bg);
  background-size: 20px 20px;
  background-blend-mode: overlay;
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  max-height: min(360px, calc(100vh - 24px));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: auto;
  padding: 0;
}

.custom-select-floating.is-open-up {
  border-radius: 8px;
}

.floating-glass-dropdown {
  position: fixed;
  z-index: 4000;
  box-sizing: border-box;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.custom-select-floating .option {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  cursor: pointer;
  color: #f3f3f3;
  white-space: nowrap;
}

.custom-select-floating .option:hover {
  background-color: #282626;
}

.custom-select-floating::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.custom-select-floating::-webkit-scrollbar-track {
  background: #282626;
}

.custom-select-floating::-webkit-scrollbar-thumb {
  background-color: #383838;
  border-radius: 8px 8px 12px 0;
  border: 2px solid #282626;
}

.custom-select-floating::-webkit-scrollbar-button {
  display: none;
}

@supports (-moz-appearance: none) {
  .custom-select-floating {
    scrollbar-width: thin;
    scrollbar-color: #383838 #282626;
  }
}
    
.suggestions {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  background-color: rgba(53, 53, 60, 0.55);
  border: 1px solid rgba(132, 170, 251, 0.5);
  border-radius: 8px;
  padding: 6px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  background-image: var(--grain-bg);
  background-size: 20px 20px;
  background-blend-mode: overlay;
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}

.suggestions.show {
  display: block;
}

.suggestion-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: rgba(255,255,255,0.06);
}

.suggestion-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--accent-2);
  margin-top: 2px;
}

.suggestion-icon svg,
.suggestion-icon i {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.suggestion-main {
  min-width: 0;
  flex: 1;
}

.suggestion-name {
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
}

.suggestion-sub {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  margin-top: 2px;
}

.search-pick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-pick-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(53, 53, 60, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  background-image: var(--grain-bg);
  background-size: 20px 20px;
  background-blend-mode: overlay;
}

.search-pick-card:hover {
  background-color: rgba(255,255,255,0.04);
}

.search-pick-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  color: var(--accent-2);
}

.search-pick-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.search-pick-cover {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 52px;
  background: #222;
}

.search-pick-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.search-pick-main {
  min-width: 0;
  flex: 1;
}

.search-pick-name {
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
}

.search-pick-sub {
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  margin-top: 3px;
}
