.track-cover-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: #222;
}

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

.modal-track-cell {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.modal-track-text {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  overflow: hidden;
}

.modal-track-title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.modal-track-sub {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  margin-top: 2px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

#playlist-modal .modal-track-title a,
#playlist-modal .playlist-modal-album-cell a,
#playlist-modal .modal-track-sub a,
#playlist-modal .modal-track-sub .artist-separator {
  color: #f3f3f3;
}

#playlist-modal .modal-track-sub .artist-separator {
  white-space: pre;
}

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

#playlist-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.playlist-modal-fixed {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
}

.playlist-modal-table-shell {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.playlist-modal-table-frame {
  margin-top: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}

.playlist-modal-table-head-wrap {
  flex: 0 0 auto;
  overflow: hidden;
  background: #282626;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  --playlist-head-offset: 0px;
  --playlist-head-scrollbar: 0px;
  padding-right: var(--playlist-head-scrollbar);
  box-sizing: border-box;
}

.playlist-modal-table-head-wrap .playlist-modal-table {
  position: relative;
  left: var(--playlist-head-offset);
  will-change: auto;
}

.playlist-modal-scroll-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

#playlist-modal .playlist-modal-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}

#playlist-modal .playlist-modal-table thead th {
  position: static;
  background: #282626;
  background-clip: padding-box;
  box-shadow: none;
  padding-left: 0;
  vertical-align: middle;
}

#playlist-modal .playlist-modal-table thead th .playlist-meta-tooltip-anchor {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  outline: none;
}

#playlist-modal .playlist-modal-table thead th:nth-child(4) .playlist-meta-tooltip-anchor,
#playlist-modal .playlist-modal-table thead th:nth-child(5) .playlist-meta-tooltip-anchor {
  gap: 4px;
  line-height: 1;
}

#playlist-modal .playlist-modal-table thead th:nth-child(4) .placement-sort-indicator,
#playlist-modal .playlist-modal-table thead th:nth-child(5) .placement-sort-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 14px;
  line-height: 1;
}

#playlist-modal .playlist-modal-table thead th:nth-child(1),
#playlist-modal .playlist-modal-table thead th:nth-child(2) {
  padding-left: 10px;
}

#playlist-modal .playlist-modal-table thead th:nth-child(3),
#playlist-modal .playlist-modal-table tbody td:nth-child(3) {
  padding-left: 10px;
}

#playlist-modal .playlist-modal-table thead th:nth-child(4),
#playlist-modal .playlist-modal-table thead th:nth-child(5),
#playlist-modal .playlist-modal-table thead th:nth-child(6) {
  padding-left: 10px;
}

#playlist-modal .playlist-modal-table-body tbody tr:first-child td {
  border-top: 0;
}

#playlist-modal .playlist-modal-table-body tbody tr {
  vertical-align: middle;
}

#playlist-modal .playlist-modal-table-body tbody tr.playlist-modal-focus-highlight td {
  background: rgba(132, 170, 251, 0.22);
  transition: background 0.18s ease;
}

#playlist-modal .playlist-modal-table col.playlist-col-position {
  width: 60px;
}

#playlist-modal .playlist-modal-table col.playlist-col-duration {
  width: 90px;
}

#playlist-modal .playlist-modal-table col.playlist-col-playcount {
  width: 120px;
}

#playlist-modal .playlist-modal-table col.playlist-col-added {
  width: 110px;
}

#playlist-modal .playlist-modal-table td {
  vertical-align: middle;
}

#playlist-modal .playlist-modal-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 14px;
  min-width: 14px;
  max-width: 14px;
  height: 14px;
  line-height: 1;
  vertical-align: middle;
  overflow: hidden;
}

#playlist-modal .playlist-modal-head-icon svg,
#playlist-modal .playlist-modal-head-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  min-width: 14px;
  max-width: 14px;
  height: 14px;
  min-height: 14px;
  max-height: 14px;
  fill: currentColor;
  flex: 0 0 14px;
  font-size: 14px;
}


.compact-added-datetime {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  white-space: nowrap;
  line-height: 1.2;
}

.compact-added-datetime > span {
  display: block;
}

.compact-added-datetime-time {
  display: block;
  margin-top: 2px;
  color: #bababa;
}

#playlist-modal .playlist-modal-table th:nth-child(4),
#playlist-modal .playlist-modal-table th:nth-child(5),
#playlist-modal .playlist-modal-table td:nth-child(4),
#playlist-modal .playlist-modal-table td:nth-child(5),
#playlist-modal .playlist-modal-table th:nth-child(6),
#playlist-modal .playlist-modal-table td:nth-child(6) {
  text-align: left;
}

#playlist-modal .modal-track-cell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

#playlist-modal .track-cover-thumb {
  flex: 0 0 40px;
}

#playlist-modal .modal-track-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

#playlist-modal .modal-track-title,
#playlist-modal .modal-track-sub,
#playlist-modal .playlist-modal-album-cell {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

#playlist-modal .modal-track-title .hover-marquee,
#playlist-modal .modal-track-sub .hover-marquee,
#playlist-modal .playlist-modal-album-cell .hover-marquee {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

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

.playlist-modal-main-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}


.playlist-modal-stats-shell {
  min-width: 0;
  width: 320px;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-gutter: auto;
}

.playlist-modal-stats-shell .playlist-stats-panel {
  flex: 0 0 auto;
  min-height: max-content;
  overflow: visible;
}

.playlist-stats-panel {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  padding: 10px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.playlist-stats-title {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}

.playlist-chart-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  padding: 10px;
  cursor: pointer;
}

.playlist-chart-card .playlist-chart-preview-wrap,
.playlist-chart-card .playlist-echart-preview,
.playlist-chart-card canvas {
  cursor: pointer;
}

.playlist-chart-card:hover {
  border-color: rgba(132,170,251,0.5);
}

