/**
 * Sets (Setlisten) eines Musikprofils.
 * Erfassung auf setlist-artists.html, Anzeige dort sowie
 * auf start-live-event.html und in den Angebots-Masken.
 *
 * Farben wie im Rest der Plattform: #815da7 (Marke), #e38722 (Akzent).
 */

/* ---------------------------------------------------------------- */
/* Gemeinsam: Chips und Zähler                                       */
/* ---------------------------------------------------------------- */

.artist-set-moods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.artist-set-mood {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    background: #815da7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.artist-set-meta {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.artist-set-counter {
    font-size: 13px;
    color: #6b7280;
}

.artist-set-empty-hint,
.artist-set-limit-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 14px;
    line-height: 1.5;
}

.artist-set-privacy-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 14px;
    line-height: 1.5;
    background: #f6f2fb;
    border-left: 3px solid #815da7;
    border-radius: 8px;
    padding: 10px 14px;
}

.artist-set-error {
    margin: 12px 0 0;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}

/* ---------------------------------------------------------------- */
/* Anzeige-Block (Veranstalter, Master, Musiker selbst)              */
/* ---------------------------------------------------------------- */

.artist-set-block {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.artist-set-block.is-featured {
    border-color: #e38722;
    box-shadow: 0 2px 10px rgba(227, 135, 34, 0.15);
}

.artist-set-block-head {
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid #f3f4f6;
}

.artist-set-block-head h3.artist-set-title {
    margin: 6px 0 0;
    font-size: 18px;
    color: #333333;
}

.artist-set-flag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: #e38722;
}

.artist-set-skeleton {
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.artist-set-skeleton-line {
    display: block;
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f0f0f0 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: artist-set-skeleton-shimmer 1.2s ease-in-out infinite;
    width: 100%;
}

.artist-set-skeleton-line.heading {
    height: 20px;
    width: 42%;
    border-radius: 8px;
}

.artist-set-skeleton-line.short {
    width: 28%;
}

@keyframes artist-set-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.artist-set-songs {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.artist-set-song {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.artist-set-song:last-child {
    border-bottom: none;
}

.artist-set-song-num {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
}

.artist-set-song-main {
    min-width: 0;
}

.artist-set-song-title {
    color: #333333;
    word-break: break-word;
}

.artist-set-song-composer {
    color: #6b7280;
    font-size: 13px;
    word-break: break-word;
}

.artist-set-song-sep {
    color: #9ca3af;
}

.artist-set-song-badge {
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #815da7;
    background: #f0eaf7;
    justify-self: end;
    white-space: nowrap;
}

.artist-set-more {
    margin-top: 10px;
    background: none;
    border: none;
    padding: 0;
    color: #815da7;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.artist-set-more:hover {
    color: #e38722;
}

.artist-set-empty {
    margin: 10px 0 0;
    font-size: 14px;
    color: #9ca3af;
}

/* ---------------------------------------------------------------- */
/* Editor: Liste                                                     */
/* ---------------------------------------------------------------- */

.artist-set-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.artist-set-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.artist-set-card--editing {
    display: block;
}

.artist-set-card-main {
    flex: 1 1 220px;
    min-width: 0;
}

.artist-set-card-head h4,
.artist-set-editor-heading {
    margin: 6px 0 0;
    font-size: 16px;
    color: #333333;
    word-break: break-word;
}

.artist-set-editor-heading {
    margin: 0 0 12px;
}

.artist-set-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.artist-set-icon-btn {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #4b5563;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.artist-set-icon-btn:hover:not(:disabled) {
    border-color: #815da7;
    color: #815da7;
}

.artist-set-icon-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.artist-set-icon-btn.is-danger:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.artist-set-text-btn {
    background: none;
    border: none;
    padding: 4px 2px;
    color: #815da7;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.artist-set-text-btn:hover:not(:disabled) {
    text-decoration: underline;
}

.artist-set-text-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.artist-set-text-btn.is-danger {
    color: #dc2626;
}

.artist-set-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: #815da7;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.artist-set-add-btn:hover:not(:disabled) {
    background: #6d4d8e;
}

.artist-set-add-btn:disabled {
    background: #c4b5d4;
    cursor: default;
}

/* ---------------------------------------------------------------- */
/* Editor: Modal                                                     */
/* ---------------------------------------------------------------- */

.modal-content.admin-modal.artist-set-editor-modal {
    max-width: 720px;
    width: 92%;
    text-align: left;
    max-height: 90vh;
    overflow: hidden;
    padding: 24px 24px 18px;
}

.artist-set-editor-modal .artist-set-editor-heading {
    font-size: 22px;
    color: #815da7;
    margin: 0;
}

.artist-set-editor-modal .close-modal {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.artist-set-editor-modal .modal-header {
    text-align: left;
    margin: 0 28px 8px 0;
}

.artist-set-editor-modal .modal-body {
    overflow-y: auto;
    padding-right: 4px;
    text-align: left;
    flex: 1;
    min-height: 0;
}

.artist-set-editor-modal .modal-footer {
    margin-top: 8px;
    padding-top: 12px;
}

.artist-set-editor-modal .artist-set-editor-actions {
    margin-top: 0;
}

.artist-set-editor {
    width: 100%;
}

.artist-set-form {
    display: grid;
    gap: 14px;
}

.artist-set-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #374151;
}

.artist-set-field input[type="text"],
.artist-set-field input[type="number"],
.artist-set-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.artist-set-direction-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.artist-set-direction-card.selection-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 88px;
    width: 100%;
    font-family: inherit;
    color: inherit;
}

.artist-set-direction-card.selection-card:hover {
    background: #f4f0f8;
    transform: translateY(-2px);
    border-color: #d5c9e3;
}

.artist-set-direction-card.selection-card.is-selected {
    border-color: #e38722;
    background: #fdf3e8;
}

.artist-set-direction-card .selection-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

.artist-set-direction-card .selection-icon svg {
    width: 32px;
    height: 32px;
    stroke: #815da7;
}

.artist-set-direction-card.selection-card.is-selected .selection-label {
    color: #e38722;
}

.artist-set-direction-card.selection-card.is-selected .selection-icon svg {
    stroke: #e38722;
}

.artist-set-direction-card .selection-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    color: #333333;
}

.artist-set-songs-section {
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

.artist-set-songs-section.is-wizard-step {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.artist-set-songs-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.artist-set-songs-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.artist-set-songs-head h3 {
    margin: 0;
    font-size: 16px;
    color: #333333;
}

.artist-set-reorder-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #6b7280;
}

.artist-set-reorder-hint-icon {
    flex-shrink: 0;
    fill: #9ca3af;
}

.artist-set-item-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.artist-set-item-row {
    display: grid;
    grid-template-columns: 22px 32px minmax(0, 1fr) minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    position: relative;
    transition: opacity 0.18s ease, box-shadow 0.18s ease;
}

.artist-set-item-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: grab;
    touch-action: none;
    border-radius: 6px;
    flex-shrink: 0;
    -webkit-user-select: none;
    user-select: none;
}

.artist-set-item-handle:hover {
    color: #6b7280;
    background: #f3f4f6;
}

.artist-set-item-handle:active,
.artist-set-editor-modal.is-reordering .artist-set-item-handle {
    cursor: grabbing;
}

.artist-set-item-handle-icon {
    display: block;
    fill: currentColor;
    pointer-events: none;
}

.artist-set-item-handle.is-ghost {
    opacity: 0.35;
    pointer-events: none;
}

.artist-set-item-row.is-ghost {
    opacity: 0.45;
}

.artist-set-item-row.is-dragging {
    opacity: 0.35;
}

.artist-set-item-row.is-drop-before::before,
.artist-set-item-row.is-drop-after::after {
    content: '';
    position: absolute;
    left: 22px;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: #815da7;
    pointer-events: none;
    z-index: 2;
}

.artist-set-item-row.is-drop-before::before {
    top: -2px;
}

.artist-set-item-row.is-drop-after::after {
    bottom: -2px;
}

.artist-set-item-ghost {
    position: fixed;
    z-index: 10050;
    margin: 0;
    padding: 4px 8px;
    list-style: none;
    pointer-events: none;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.18);
    opacity: 0.96;
    transform: scale(1.02);
}

.artist-set-editor-modal.is-reordering {
    user-select: none;
    -webkit-user-select: none;
}

.artist-set-editor-modal .artist-set-item-pos,
.artist-set-editor-modal input.artist-set-item-composer,
.artist-set-editor-modal input.artist-set-item-title {
    width: 100%;
    margin-bottom: 0;
    height: 28px;
    min-height: 0;
    min-width: 0;
    padding: 2px 10px;
    line-height: 1.2;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 13px;
    border: none;
    background: #f3f4f6;
    border-radius: 999px;
}

.artist-set-item-field {
    position: relative;
    display: block;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 999px;
}

.artist-set-item-field.is-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}

.artist-set-item-field.is-truncated input {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artist-set-item-field-scroll {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    padding: 0 10px;
    pointer-events: none;
    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
    z-index: 1;
}

.artist-set-item-field.is-marquee .artist-set-item-field-scroll {
    display: flex;
}

.artist-set-item-field.is-marquee input {
    color: transparent;
    caret-color: transparent;
}

.artist-set-item-field-scroll-track {
    display: inline-flex;
    white-space: nowrap;
    will-change: transform;
}

.artist-set-item-field.is-marquee .artist-set-item-field-scroll-track {
    animation: artistSetFieldMarquee var(--field-marquee-duration, 8s) ease-in-out infinite;
}

.artist-set-item-field-scroll-text {
    font-family: inherit;
    font-size: 13px;
    line-height: 1.2;
    color: #333;
}

@keyframes artistSetFieldMarquee {
    0%, 8% { transform: translateX(0); }
    42%, 58% { transform: translateX(var(--field-marquee-distance, 0)); }
    92%, 100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .artist-set-item-field.is-marquee .artist-set-item-field-scroll-track {
        animation: none;
    }
}

.artist-set-editor-modal .artist-set-item-pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px;
    color: #4b5563;
    font-variant-numeric: tabular-nums;
    padding-left: 0;
    padding-right: 0;
    user-select: none;
}

.artist-set-editor-modal input.artist-set-item-composer,
.artist-set-editor-modal input.artist-set-item-title {
    cursor: text;
}

.artist-set-editor-modal .artist-set-original-chip,
.artist-set-editor-modal .artist-set-icon-btn {
    cursor: pointer;
}

.artist-set-item-row:not(.is-ghost) .artist-set-item-pos {
    cursor: default;
}

.artist-set-editor-modal input.artist-set-item-composer,
.artist-set-editor-modal input.artist-set-item-title {
    color: #111827;
    outline: none;
}

.artist-set-editor-modal input.artist-set-item-composer:focus,
.artist-set-editor-modal input.artist-set-item-title:focus {
    outline: none;
    border-color: transparent;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(129, 93, 167, 0.25);
}

.artist-set-item-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    min-height: 0;
}

.artist-set-item-row .artist-set-icon-btn {
    width: 24px;
    height: 24px;
    font-size: 13px;
    border-radius: 6px;
}

.artist-set-item-flag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #4b5563;
    white-space: nowrap;
    cursor: pointer;
}

.artist-set-original-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #f9f9f9;
    color: #4b5563;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.artist-set-original-chip:hover {
    border-color: #d5c9e3;
    background: #f4f0f8;
}

.artist-set-original-chip.is-selected {
    border-color: #e38722;
    background: #fdf3e8;
    color: #e38722;
}

.artist-set-original-chip.is-ghost {
    pointer-events: none;
}

.artist-set-paste {
    position: relative;
}

.artist-set-paste-toggle {
    margin-top: 4px;
}

#artistSetImportModal.modal {
    z-index: 2100;
}

.modal-content.admin-modal.artist-set-import-modal {
    max-width: 560px;
    width: 92%;
    text-align: left;
    max-height: 90vh;
    overflow: hidden;
    padding: 24px 24px 18px;
}

.artist-set-import-modal .artist-set-editor-heading {
    font-size: 22px;
    color: #815da7;
    margin: 0;
}

.artist-set-import-modal .close-modal {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.artist-set-import-modal .modal-header {
    text-align: left;
    margin: 0 28px 8px 0;
}

.artist-set-import-steps {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 10px 0 0;
}

.artist-set-import-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
}

.artist-set-import-step.is-active .artist-set-import-step-num {
    background: #815da7;
    color: #ffffff;
}

.artist-set-import-step.is-done .artist-set-import-step-num {
    background: #d5c9e3;
    color: #815da7;
}

.artist-set-import-modal .modal-body {
    overflow-y: auto;
    padding-right: 4px;
    text-align: left;
    flex: 1;
    min-height: 0;
}

.artist-set-import-modal .modal-footer {
    margin-top: 8px;
    padding-top: 12px;
}

.artist-set-import-hint {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #4b5563;
}

.artist-set-import-legend {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: #815da7;
    letter-spacing: 0.02em;
}

.artist-set-import-examples {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 16px;
}

.artist-set-import-example {
    padding: 10px 12px;
    background: #f6f2fb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    line-height: 1.4;
}

.artist-set-import-source-grid {
    margin-top: 4px;
}

.artist-set-import-preview {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.artist-set-import-preview-row {
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.artist-set-import-preview-row:last-child {
    border-bottom: none;
}

.artist-set-import-empty {
    margin: 0 0 12px;
    font-size: 13px;
    color: #6b7280;
}

.artist-set-import-actions {
    justify-content: space-between;
    width: 100%;
    margin-top: 0;
}

.artist-set-import-actions.is-start {
    justify-content: flex-end;
}

.artist-set-import-modal textarea {
    width: 100%;
    min-height: 160px;
    margin-bottom: 0;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
    resize: vertical;
    box-sizing: border-box;
}

.artist-set-import-modal .artist-set-error {
    margin-top: 10px;
}

.artist-set-paste-actions {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.artist-set-paste-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid #815da7;
    background: #ffffff;
    color: #815da7;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.artist-set-paste-btn:hover {
    background: #f4f0f8;
}

.artist-set-paste-btn.is-primary {
    background: #815da7;
    color: #ffffff;
    border-color: #815da7;
}

.artist-set-paste-btn.is-primary:hover {
    background: #6d4d8e;
}

.artist-set-paste-btn.is-selected {
    border-color: #e38722;
    background: #fdf3e8;
    color: #e38722;
}

.artist-set-paste-btn.is-selected:hover {
    background: #fae6cc;
}

.artist-set-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* ---------------------------------------------------------------- */
/* Auswahl im Angebot                                                */
/* ---------------------------------------------------------------- */

.artist-set-picker {
    margin-top: 14px;
    text-align: left;
}

.artist-set-picker label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #374151;
}

.artist-set-picker-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #ffffff;
}

.artist-set-picker-hint,
.artist-set-picker-empty {
    margin: 6px 0 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    text-align: left;
}

/* ---------------------------------------------------------------- */
/* Werkstatt: Hinweis beim Kriterium Repertoire                      */
/* ---------------------------------------------------------------- */

.es-profile-sets-hint {
    margin: 12px 0 0;
    padding: 8px 12px;
    border-left: 3px solid #815da7;
    border-radius: 8px;
    background: #f6f2fb;
    font-size: 13px;
    color: #4b5563;
}

/* ---------------------------------------------------------------- */
/* Vorgangsansicht (start-live-event)                                */
/* ---------------------------------------------------------------- */

.sle-artist-card-set:empty {
    display: none;
}

.sle-artist-card-set {
    margin-top: 10px;
}

.sle-artist-card-set .artist-set-block {
    padding: 12px 14px;
    margin-bottom: 0;
}

.artist-sets-profile-link {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 20px;
    border: 1px solid #815da7;
    background: #ffffff;
    color: #815da7;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

.artist-sets-profile-link:not([hidden]) {
    display: inline-flex;
}

.artist-sets-profile-link[hidden] {
    display: none !important;
}

.artist-sets-profile-link:hover {
    background: #f4f0f8;
    color: #6d4d8e;
}

.sle-artist-card-set-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #815da7;
    text-decoration: none;
}

.sle-artist-card-set-link:hover {
    color: #e38722;
}

/* ---------------------------------------------------------------- */
/* Mobil                                                             */
/* ---------------------------------------------------------------- */

@media (max-width: 640px) {
    .artist-set-card {
        flex-direction: column;
    }

    .artist-set-card-main {
        flex: 0 1 auto;
    }

    .artist-set-card-actions {
        width: 100%;
    }

    .artist-set-item-row {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) 28px;
        grid-auto-rows: min-content;
        gap: 4px 8px;
        padding: 8px 8px 8px 4px;
        margin-bottom: 6px;
        background: #f9fafb;
        border-radius: 12px;
        align-items: center;
    }

    .artist-set-item-row.is-ghost {
        background: #f3f4f6;
    }

    .artist-set-item-handle {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
        width: 28px;
        height: 28px;
    }

    .artist-set-editor-modal .artist-set-item-pos {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        align-self: start;
        width: 24px;
        height: 24px;
        padding: 0;
        font-size: 10px;
    }

    .artist-set-item-field--composer {
        grid-column: 2;
        grid-row: 1;
    }

    .artist-set-item-field--title {
        grid-column: 2;
        grid-row: 2;
    }

    .artist-set-original-chip {
        grid-column: 2;
        grid-row: 3;
        justify-self: start;
    }

    .artist-set-item-actions {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: start;
    }

    .artist-set-item-row.is-drop-before::before,
    .artist-set-item-row.is-drop-after::after {
        left: 8px;
        right: 8px;
    }

    .artist-set-item-ghost {
        padding: 8px 8px 8px 4px;
        background: #ffffff;
    }

    .artist-set-paste-btn {
        width: 100%;
    }

    #artistSetEditorModal.modal {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    #artistSetEditorModal .modal-content.admin-modal.artist-set-editor-modal,
    #artistSetImportModal .modal-content.admin-modal.artist-set-import-modal {
        width: 100%;
        max-width: none;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        margin: 0;
        padding: max(12px, env(safe-area-inset-top, 0px)) 14px max(12px, env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
        animation: none;
    }

    #artistSetImportModal.modal {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    @supports (height: 100dvh) {
        #artistSetEditorModal .modal-content.admin-modal.artist-set-editor-modal,
        #artistSetImportModal .modal-content.admin-modal.artist-set-import-modal {
            height: 100dvh;
        }
    }
}
