.playlist-chart-modal-box {
  width: min(1180px, 100%);
  max-width: 1180px;
  overflow-x: hidden;
}

.playlist-chart-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
}

.playlist-chart-expanded-note {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.playlist-chart-expanded-wrap {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  padding: 12px;
}

.playlist-echart-preview,
.playlist-echart-expanded {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}


@media (max-width: 1180px) {
  #playlist-modal .modal-box {
    width: min(1180px, 100%);
  }

  .playlist-modal-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}

@media (max-width: 980px) {
  .playlist-modal-layout {
    grid-template-columns: 1fr;
  }

  .playlist-modal-main-shell {
    order: 1;
  }

  .playlist-modal-stats-shell {
    order: 2;
  }

  .playlist-modal-table-shell {
    min-height: 360px;
  }

  .playlist-modal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .playlist-modal-search-wrap {
    width: 100%;
    flex: 0 0 auto;
  }
}

.hover-marquee {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.hover-marquee-inner {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  transform: translateX(0);
  will-change: transform;
}

.hover-marquee.is-overflow:hover .hover-marquee-inner {
  animation: hover-marquee-x var(--marquee-duration, 6s) ease-in-out infinite alternate;
}

@keyframes hover-marquee-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--marquee-shift, 0px)));
  }
}
    
@supports (-moz-appearance: none) {
  .modal-box,
  .custom-select .options-container,
  .suggestions,
  .playlist-modal-scroll-area,
  .curator-modal-playlist-scroll,
  .tab-pane {
    scrollbar-width: thin;
    scrollbar-color: #383838 #282626;
  }
}

@media (max-width: 1100px) {
  .controls-row-top {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .top-tabs-slot {
    order: 2;
    flex: 1 1 100%;
    margin-bottom: -1px;
  }

  .tabs-bar-top {
    width: 100%;
  }

  .controls-card .top-slot {
    order: 3;
    flex: 1 1 100%;
  }
.field.small,
  .slider-field {
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo-wrapper {
    width: 100%;
    flex: none;
  }
}
.curator-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #222;
  flex: 0 0 96px;
}
.curator-name {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.curator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.curator-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.curator-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

    .curator-stats-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 10px 0 12px;
}

.curator-chart-card {
  cursor: default;
}

.curator-chart-card:hover {
  border-color: rgba(255,255,255,0.08);
}

@media (max-width: 1180px) {
  .curator-modal-layout {
    grid-template-columns: 1fr;
  }

  .curator-modal-main-shell {
    order: 1;
  }

  .curator-modal-playlists-shell {
    order: 2;
    min-height: 420px;
  }
}

@media (max-width: 980px) {
  .curator-modal-info-row {
    flex-direction: column;
    width: 100%;
  }

  .curator-modal-info-row .curator-catalog-stats-card,
  .curator-modal-info-row .playlist-genres-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .curator-stats-panel {
    grid-template-columns: 1fr;
  }

  .curator-modal-profile-top {
    grid-template-columns: 1fr;
  }

  .curator-modal-avatar {
    width: 92px;
    height: 92px;
  }

  .curator-modal-name {
    font-size: 24px;
  }

  .curator-modal-info-row .playlist-genres-card {
    max-width: none;
  }
}
    
.curator-link-tooltip-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

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

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

.curator-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.curator-link-pill:hover {
  text-decoration: none;
  color: var(--accent-2);
  border-color: rgba(132, 170, 251, 1);
  background: rgba(132, 170, 251, 0.08);
  transform: translateY(-1px);
}

.curator-link-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  width: max-content;
  min-width: 0;
  max-width: min(240px, calc(100vw - 24px));
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(53, 53, 60, 0.98);
  border: 1px solid rgba(132, 170, 251, 0.45);
  box-shadow: 0 12px 30px rgba(0,0,0,0.32);
  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%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: normal;
  text-align: center;
  transform: translate3d(-50%, 6px, 0);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
  z-index: 25000;
}

.curator-link-tooltip-title {
  font-size: 12px;
  line-height: 1.25;
  color: var(--text);
  font-weight: 700;
}

.curator-link-tooltip-anchor:hover > .curator-link-tooltip,
.curator-link-tooltip-anchor:focus-within > .curator-link-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, 0, 0);
}

    .curator-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.curator-link-icon svg,
.curator-link-icon i {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
    
    .curator-genres-block {
  margin-bottom: 10px;
}

.curator-genres-tooltip {
  width: min(420px, calc(100vw - 48px));
  max-height: 300px;
}

.curator-genres-tooltip-meta {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted);
}
    
.curator-sort-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.curator-sort-row.curator-modal-sort-row {
  margin-bottom: 0;
}

.curator-sort-btn.active {
  background-color: rgba(132, 170, 251, 0.2);
  border-color: rgba(132, 170, 251, 1);
}

.curator-playlist-list {
  display: block;
}

@media (min-width: 1280px) {
  .curator-playlist-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.curator-empty-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.curator-inline-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.curator-inline-link:hover {
  text-decoration: underline;
}

.curators-catalog-modal-box {
  max-width: 1180px;
}

#tab-curators {
  overflow: hidden;
}

#tab-curators > .tab-pane-section {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  gap: 12px;
}

.curators-catalog-controls {
  flex: 0 0 auto;
  margin-bottom: 0;
  position: relative;
  z-index: 3;
  padding-top: 2px;
}
