/* ==========================================================================
   CSS: SEARCH RESULTS / SEARCH HEADERS / PLACEMENT TABLES
   ========================================================================== */

.search-head-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  background: rgba(53, 53, 60, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  background-image: var(--grain-bg);
  background-size: 20px 20px;
  background-blend-mode: overlay;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}

.search-head-cover {
  --preview-overlay-size: 44px;
  width: 116px;
  min-width: 116px;
  height: 116px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.search-head-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  font-size: 38px;
}

.search-head-cover-fallback .ti {
  font-size: 38px;
  line-height: 1;
}

.search-head-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.search-head-title-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-head-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(132, 170, 251, 0.14);
  border: 1px solid rgba(132, 170, 251, 0.24);
  color: var(--accent-2);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.search-head-kicker .ti {
  font-size: 12px;
}

.search-head-title {
  font-size: 24px;
  line-height: 1.18;
  font-weight: 700;
  margin: 0;
  color: #f3f3f3;
  word-break: break-word;
}

.search-head-title a {
  color: #f3f3f3;
  text-decoration: none;
}

.search-head-title a:hover {
  text-decoration: underline;
}

.search-head-subtitle {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  min-width: 0;
}

.artist-separator {
  white-space: pre;
}

.search-head-subtitle a {
  color: #f3f3f3;
}

.search-head-action-anchor {
  flex: 0 0 auto;
  align-self: flex-start;
}

.search-head-action {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(132, 170, 251, 0.22);
  background: rgba(132, 170, 251, 0.08);
  color: #f3f3f3;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.search-head-action:hover {
  color: #f3f3f3;
  text-decoration: none;
  border-color: rgba(132, 170, 251, 0.65);
  background: rgba(132, 170, 251, 0.14);
  transform: translateY(-1px);
}

.search-head-action .ti {
  font-size: 16px;
}

.search-head-stats {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  align-items: flex-start;
}

.search-head-stats > .playlist-meta-tooltip-anchor,
.search-head-stats > .search-stat-tooltip-anchor {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  align-self: flex-start;
}

.artist-search-head {
  --artist-head-photo-size: 148px;
  grid-template-columns: fit-content(640px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.artist-search-head-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto var(--artist-head-photo-size);
  gap: 10px;
}

.artist-search-head-title-row {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.artist-search-head-title {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.artist-search-head-title .search-head-title {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.artist-search-head-title .search-head-action-anchor {
  flex: 0 0 auto;
  align-self: center;
  margin-left: 0;
}

.artist-search-head-title-link {
  display: block;
  min-width: 0;
  color: #f3f3f3;
  text-decoration: none;
}

.artist-search-head-title-link:hover,
.artist-search-head-title-link:focus-visible {
  color: #f3f3f3;
  text-decoration: none;
}

.artist-search-head-title-link .hover-marquee {
  display: block;
  max-width: 100%;
}

.artist-search-head-title-link .hover-marquee-inner {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-search-head-title-link:hover .hover-marquee.is-overflow .hover-marquee-inner,
.artist-search-head-title-link:focus-visible .hover-marquee.is-overflow .hover-marquee-inner {
  max-width: none;
  overflow: visible;
  animation: hover-marquee-x var(--marquee-duration, 6s) ease-in-out infinite alternate;
}

.artist-search-head-body-row {
  min-width: 0;
  display: grid;
  grid-template-columns: var(--artist-head-photo-size) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.artist-search-head .search-head-cover {
  width: var(--artist-head-photo-size);
  min-width: var(--artist-head-photo-size);
  height: var(--artist-head-photo-size);
  aspect-ratio: auto;
}

.artist-search-head-stats-grid {
  min-width: 0;
  height: var(--artist-head-photo-size);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(172px, 1.08fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.artist-search-head-stat-slot {
  min-width: 0;
  display: flex;
}

.artist-search-head-stat-slot--latest {
  grid-row: 1 / span 2;
}

.artist-search-head-stat-slot--latest > .search-stat-tooltip-anchor > .search-head-stat {
  justify-content: flex-start;
  padding-right: 0;
}

.artist-search-head-stat-slot--latest > .search-stat-tooltip-anchor > .search-head-stat > .search-head-stat-body {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  justify-content: flex-start;
  align-items: flex-start;
}

.artist-search-head-stat-slot > .search-stat-tooltip-anchor {
  width: 100%;
  min-width: 0;
  display: flex;
}

.artist-search-head-stat-slot > .search-stat-tooltip-anchor > .search-head-stat {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
}

.artist-search-head-stat-slot > .search-stat-tooltip-anchor > .search-head-stat > .search-head-stat-icon {
  align-self: center;
}

.artist-search-head-stat-slot > .search-stat-tooltip-anchor > .search-head-stat > .search-head-stat-body {
  flex: 1 1 auto;
  width: 0;
  justify-content: center;
  min-height: 100%;
}

.artist-search-head-charts {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.artist-search-head-chart-cell {
  min-width: 0;
  display: flex;
  height: 100%;
}

.artist-analytics-chart-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 7px;
}

.artist-analytics-chart-card .playlist-chart-title {
  margin-bottom: 0;
}

.artist-analytics-chart-card .playlist-chart-subtitle {
  margin-bottom: 0;
}

.artist-analytics-chart-card .playlist-chart-preview-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  margin-bottom: 0;
}

.artist-analytics-chart-card .playlist-echart-preview {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.artist-analytics-chart-card .playlist-chart-footer {
  margin-top: 2px;
}

.artist-analytics-chart-open-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(22, 22, 28, 0.56);
  color: #f3f3f3;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.artist-analytics-chart-card .playlist-chart-preview-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(0,0,0,0.24);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.artist-analytics-chart-card:hover .artist-analytics-chart-open-hint,
.artist-analytics-chart-card:focus-visible .artist-analytics-chart-open-hint,
.artist-analytics-chart-card:hover .playlist-chart-preview-wrap::before,
.artist-analytics-chart-card:focus-visible .playlist-chart-preview-wrap::before {
  opacity: 1;
}

.artist-analytics-chart-card.is-disabled .artist-analytics-chart-open-hint,
.artist-analytics-chart-card.is-disabled .playlist-chart-preview-wrap::before {
  display: none;
}

.artist-analytics-chart-card.is-disabled {
  cursor: default;
}

.artist-analytics-chart-card.is-disabled:hover {
  border-color: rgba(255,255,255,0.08);
}
.artist-chart-mode-switch {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.artist-chart-mode-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #f3f3f3;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.artist-chart-mode-btn:hover,
.artist-chart-mode-btn:focus-visible {
  border-color: rgba(132,170,251,0.56);
  background: rgba(132,170,251,0.12);
  color: #f3f3f3;
}

.artist-chart-mode-btn.is-active {
  border-color: rgba(132,170,251,0.95);
  background: rgba(132,170,251,0.2);
}

.search-head-stat-label.is-rich,
.search-head-stat-value.is-rich {
  display: block;
}

.search-head-stat-value-subline {
  display: inline-block;
  color: var(--muted);
}

.artist-analytics-tooltip-panel {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: min(320px, calc(100vw - 32px));
  max-width: min(420px, calc(100vw - 32px));
}

.artist-analytics-tooltip-title {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

.artist-analytics-tooltip-title > .ti {
  flex: 0 0 auto;
  color: #bababa;
}

.artist-analytics-tooltip-title-date {
  min-width: 0;
  flex: 1 1 auto;
  color: #d7d7d7;
  font-weight: 500;
}

.artist-analytics-tooltip-panel .playlist-scroll-tooltip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
}

.artist-analytics-tooltip-panel .playlist-scroll-tooltip-body,
.artist-analytics-tooltip-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(340px, calc(100vh - 120px));
  overflow: auto;
  margin: 0;
  padding: 6px;
  border-radius: 0 0 12px 12px;
  background: transparent;
}

.artist-analytics-tooltip-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.artist-analytics-tooltip-body::-webkit-scrollbar-track {
  background: #282626;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 0;
}

.artist-analytics-tooltip-body::-webkit-scrollbar-thumb {
  background-color: #383838;
  border: 2px solid #282626;
  background-clip: padding-box;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 0;
}

.artist-analytics-tooltip-body::-webkit-scrollbar-button {
  display: none;
}

.artist-analytics-tooltip-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 13px;
  line-height: 1.3;
  color: #f3f3f3;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.artist-analytics-tooltip-summary > .ti {
  color: #bababa;
}

.artist-analytics-tooltip-group,
.artist-analytics-tooltip-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.artist-analytics-tooltip-event,
.artist-analytics-tooltip-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.artist-analytics-tooltip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.artist-analytics-tooltip-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f3f3f3;
  text-decoration: none;
}

.artist-analytics-tooltip-link:hover,
.artist-analytics-tooltip-link:focus-visible {
  color: #f3f3f3;
  text-decoration: none;
}

button.artist-analytics-tooltip-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

button.artist-analytics-tooltip-playlist,
button.artist-analytics-tooltip-pill {
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  -webkit-appearance: none;
  outline: 0;
}

.artist-analytics-tooltip-thumb {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.artist-analytics-tooltip-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-analytics-tooltip-thumb.is-fallback {
  color: #84AAFB;
}

.artist-analytics-tooltip-thumb.is-fallback .ti {
  font-size: 14px;
}

.artist-analytics-tooltip-link-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.artist-analytics-tooltip-kicker {
  font-size: 10px;
  line-height: 1.15;
  color: #bababa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.artist-analytics-tooltip-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-analytics-tooltip-count {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.35;
  color: #f3f3f3;
  font-weight: 700;
  text-align: right;
}

.artist-analytics-tooltip-playlists {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 38px;
}

.artist-analytics-tooltip-playlist,
.artist-analytics-tooltip-pill {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  border-radius: 7px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f3f3f3;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
}

.artist-analytics-tooltip-playlist:hover,
.artist-analytics-tooltip-playlist:focus-visible,
.artist-analytics-tooltip-pill:hover,
.artist-analytics-tooltip-pill:focus-visible {
  background: rgba(132,170,251,0.10) !important;
  color: #f3f3f3;
  text-decoration: none;
}

.artist-analytics-tooltip-pill-text,
.artist-analytics-tooltip-playlist-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-analytics-tooltip-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.35;
  color: #bababa;
}

.artist-analytics-tooltip-meta-value {
  color: #f3f3f3;
  font-weight: 700;
}

.search-head-stat,
.search-inline-stat {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.search-head-stat {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
}

.search-inline-stat {
  flex: 0 1 auto;
  padding: 8px 10px;
}

.search-head-stat-icon,
.search-inline-stat-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(132, 170, 251, 0.12);
  color: var(--accent-2);
  line-height: 1;
}

.search-inline-stat-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.search-head-stat-icon .ti,
.search-inline-stat-icon .ti {
  font-size: 14px;
}

.search-head-stat-body,
.search-inline-stat-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-head-stat-label,
.search-inline-stat-label {
  font-size: 12px;
  line-height: 1.15;
  color: var(--muted);
}

.search-head-stat-value,
.search-inline-stat-value {
  font-size: 15px;
  line-height: 1.2;
  color: #f3f3f3;
  word-break: break-word;
}

.search-inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.search-inline-stats + .placement-table-block {
  margin-top: 16px;
}

.search-track-result {
  align-items: stretch;
  border-radius: 12px;
}

.search-track-result .result-title {
  margin-bottom: 6px;
}

.search-track-result .result-sub {
  margin-bottom: 0;
}

.search-track-result .placement-table-block {
  margin-top: 10px;
}


.search-track-accordion-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.search-track-accordion-toggle:hover .search-track-chevron,
.search-track-accordion-toggle:focus-visible .search-track-chevron,
.search-track-result.is-expanded .search-track-chevron {
  border-color: rgba(132, 170, 251, 0.75);
  background: rgba(132, 170, 251, 0.12);
}

.search-track-accordion-toggle:focus-visible {
  outline: none;
}

.search-track-accordion-main {
  min-width: 0;
}

.search-track-chevron {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
  flex: 0 0 auto;
}

.search-track-chevron .ti {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.search-track-result.is-expanded .search-track-chevron .ti {
  transform: rotate(180deg);
}

.search-track-playlists-collapse {
  display: none;
}

.search-track-result.is-expanded .search-track-playlists-collapse {
  display: block;
}

.placement-playlist-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f3f3f3;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
}

.placement-playlist-button:hover {
  text-decoration: none;
}

.placement-playlist-cover {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  flex: 0 0 40px;
  order: 0;
}

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

.placement-playlist-cover-fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  background: rgba(132, 170, 251, 0.08);
}

.placement-playlist-cover-fallback .ti {
  font-size: 11px;
}

.placement-playlist-label {
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  align-self: center;
  order: 1;
}

.placement-playlist-label-text {
  display: block;
  color: #f3f3f3;
}

.placement-playlist-button:hover .placement-playlist-label-text {
  text-decoration: underline;
}

.search-entity-list > .placement-table-block:first-child {
  margin-top: 0;
}

.search-entity-scroll .search-inline-stats + .placement-table-block,
.search-entity-scroll .search-inline-stats + .placement-table-block:first-child {
  margin-top: 16px;
}

.search-track-empty {
  padding: 16px;
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,0.12);
  color: var(--muted);
}

@media (max-width: 1320px) {
  .artist-search-head {
    grid-template-columns: 1fr;
  }

  .artist-search-head-charts {
    min-height: 220px;
  }
}

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

  .artist-search-head-body-row {
    grid-template-columns: var(--artist-head-photo-size) minmax(0, 1fr);
  }

  .artist-search-head-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    height: auto;
  }

  .artist-search-head-stat-slot--latest {
    grid-column: 1 / span 2;
    grid-row: auto;
  }

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

  .artist-analytics-chart-card .playlist-echart-preview {
    min-height: 170px;
  }
}

@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;
}
