.playlist-chart-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.playlist-chart-title:last-child {
  margin-bottom: 0;
}

.playlist-chart-subtitle {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  margin-bottom: 8px;
}

.curator-modal-box {
  width: min(1440px, 100%);
  max-width: none;
  display: flex;
  flex-direction: column;
  height: min(88vh, 1000px);
  max-height: min(88vh, 1000px);
  overflow: hidden;
}

#curator-content {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.curator-modal-layout {
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr);
  align-items: stretch;
  height: 100%;
  min-height: 0;
  gap: 12px;
}

.curator-modal-main-shell {
  min-width: 560px;
  min-height: 0;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
}

.curator-modal-profile-card,
.curator-modal-playlists-shell,
.curator-modal-charts-shell {
  border: 1px solid rgba(53, 53, 60, 0.55);
  border-radius: 12px;
  background: rgba(53, 53, 60, 0.55);
  background-image: var(--grain-bg);
  background-size: 20px 20px;
  background-blend-mode: overlay;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  min-width: 0;
}

.curator-modal-profile-card,
.curator-modal-charts-shell {
  padding: 14px;
}

.curator-modal-profile-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.curator-modal-profile-top {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.curator-modal-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.curator-modal-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.curator-modal-avatar.is-empty,
.curator-catalog-avatar.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.045);
  background-image: var(--grain-bg);
  background-size: 20px 20px;
  background-blend-mode: overlay;
}

.curator-modal-avatar.is-empty .ti,
.curator-catalog-avatar.is-empty .ti {
  display: block;
  line-height: 1;
}

.curator-modal-avatar.is-empty .ti {
  font-size: 34px;
}

.curator-catalog-avatar.is-empty .ti {
  font-size: 24px;
}

.curator-modal-head-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.curator-modal-name {
  min-width: 0;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 700;
  color: var(--text);
}

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

.curator-modal-info-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.curator-modal-info-row .curator-catalog-stats-card {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.curator-modal-info-row .playlist-genres-card {
  flex: 0 1 auto;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  align-self: stretch;
  justify-self: stretch;
}

.curator-modal-info-row .playlist-genres-card .playlist-genres-row {
  align-items: flex-start;
  height: 100%;
}

.curator-modal-info-row .playlist-genres-card .playlist-genres-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  align-items: start;
}

.curator-modal-info-row .playlist-genres-card .playlist-genre-inline,
.curator-modal-info-row .playlist-genres-card .playlist-genres-more {
  white-space: nowrap;
}

.curator-modal-info-row .playlist-genres-card .playlist-genres-tooltip-anchor {
  margin-left: 0;
  align-self: flex-start;
}

.curator-modal-info-row .curator-catalog-stats-grid {
  grid-template-columns: repeat(4, auto);
  grid-auto-flow: row;
}

.curator-modal-info-row .curator-catalog-stats-grid > .playlist-meta-tooltip-anchor {
  width: auto;
}

.curator-catalog-genres-tooltip-panel {
  width: min(360px, calc(100vw - 48px));
}

.curator-catalog-genres-tooltip-panel .playlist-scroll-tooltip-body {
  max-height: 260px;
}

.curator-catalog-genres-tooltip-panel .playlist-genres-tooltip-name {
  white-space: normal;
}

.curator-modal-charts-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-gutter: auto;
  scrollbar-width: thin;
  scrollbar-color: #383838 #282626;
}

.curator-modal-charts-shell .curator-stats-panel {
  margin: 0;
}

.curator-modal-charts-shell::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.curator-modal-charts-shell::-webkit-scrollbar-track {
  background: #282626;
  border-radius: 999px;
}

.curator-modal-charts-shell::-webkit-scrollbar-thumb {
  background: #383838;
  border-radius: 999px;
  border: 2px solid #282626;
  background-clip: padding-box;
}

.curator-modal-charts-shell::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.curator-modal-playlists-shell {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.curator-modal-playlists-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: transparent;
}

.curator-modal-playlists-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 900px) {
  .curator-modal-playlists-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .curator-modal-sort-row {
    margin-left: 0;
    width: fit-content;
    max-width: 100%;
  }
}

.curator-modal-playlists-title-block {
  min-width: 0;
}

.curator-modal-playlists-title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.curator-modal-playlists-subtitle {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.curator-modal-sort-row {
  margin-bottom: 0;
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.curator-modal-sort-row .curator-sort-btn {
  margin: 0;
  min-width: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  padding: 8px 12px;
  white-space: nowrap;
}

.curator-modal-sort-row .curator-sort-btn:hover {
  background: rgba(255,255,255,0.05);
}

.curator-modal-sort-row .curator-sort-btn.active {
  background: rgba(132, 170, 251, 0.18);
  border-color: transparent;
  color: var(--text);
}

.curator-modal-playlist-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px 10px 10px;
  scrollbar-gutter: auto;
}

.curator-modal-playlist-scroll .playlist-list-columns {
  grid-template-columns: 1fr;
}

.curator-modal-playlist-scroll .playlist-list-column {
  gap: 10px;
}

.curator-modal-playlist-scroll .curator-empty-note {
  padding: 4px 2px;
}

.playlist-chart-preview-wrap,
.playlist-chart-expanded-wrap {
  position: relative;
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
}

.playlist-chart-card .playlist-chart-preview-wrap {
  margin-bottom: -4px;
}

.playlist-echart-preview {
  width: 100%;
  height: 150px;
}

.playlist-echart-expanded {
  width: 100%;
  height: 420px;
}

.playlist-chart-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted);
  text-align: center;
}

.playlist-chart-footer span:empty {
  display: none;
}

.playlist-chart-empty {
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

