/* Artist catalog and artist detail components. */

@media print {
    .artist-columns,
    .artist-columns-wide {
        display: block;
    }

    .artist-description details:not([open]) .artist-description-content {
        display: block !important;
    }

    .artist-description summary {
        display: none;
    }

    .artist-description-content {
        max-width: none;
        margin-top: 8mm;
    }

    .artist-song-row {
        break-inside: avoid;
    }
}

.artist-news-name {
    margin: 0 0 6px;
    color: #555;
    font-weight: 700;
}

.artist-catalog {
    max-width: 1180px;
    margin: 0 auto;
}

.artist-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.artist-catalog-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px solid #e1e5e8;
}

.artist-catalog-item h2,
.artist-catalog-item p {
    margin: 0;
}

.artist-catalog-item h2 {
    font-size: 18px;
    line-height: 1.3;
}

.artist-catalog-item p,
.artist-catalog-item time,
.artist-catalog-lifespan {
    color: #727272;
    font-size: 14px;
}

.artist-catalog-photo img {
    box-sizing: border-box;
    display: block;
    width: 68px;
    height: 68px;
    border: 2px solid transparent;
    border-radius: 50%;
    object-fit: cover;
}

.artist-catalog-item.is-deceased .artist-catalog-photo img {
    border-color: #111;
    padding: 2px;
    background: #fff;
}

@media (max-width: 720px) {
    .artist-catalog-item {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 10px;
        padding: 8px 0;
    }

    .artist-catalog-photo img {
        width: 58px;
        height: 58px;
    }
}

.artist-page {
    max-width: 1280px;
    margin: 0 auto;
}

.artist-header {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 36px;
}

.artist-header-without-photo {
    grid-template-columns: 1fr;
}

.artist-header h1 {
    margin: 0;
    line-height: 1.2;
}

.artist-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}

.artist-work-types {
    margin: 10px 0 0;
    color: #58746c;
    font-size: 14px;
    font-style: italic;
}

.artist-life-dates {
    margin: 12px 0 0;
    color: #687772;
}

.artist-life-age {
    margin-left: 4px;
    color: #294f45;
    white-space: nowrap;
}

.artist-photo-frame {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
}

.artist-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 32px;
    align-items: start;
}

.artist-columns-wide {
    grid-template-columns: minmax(0, 1fr);
}

.artist-albums,
.artist-description {
    padding: 24px;
    border: 1px solid #e1e5e8;
    border-radius: 12px;
    background: #fff;
}

.artist-songs {
    min-width: 0;
}

.artist-description {
    margin-top: 32px;
}

.artist-description summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    color: #294f45;
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
}

.artist-description summary small {
    color: #687772;
    font-size: 13px;
    font-weight: 600;
}

.artist-description-content {
    max-width: 880px;
    margin-top: 22px;
    line-height: 1.65;
}

.artist-songs h2,
.artist-albums h2,
.artist-description h2 {
    margin-top: 0;
}

.artist-albums-heading {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.artist-albums-heading h2 {
    margin-bottom: 0;
}

.artist-album-add {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid var(--color-admin-primary);
    border-radius: var(--radius-small);
    color: var(--color-admin-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.artist-album-add:hover {
    border-color: var(--color-admin-primary-hover);
    color: var(--color-admin-primary-hover);
}

.artist-sidebar {
    display: grid;
    gap: 24px;
}

.artist-song-list {
    display: grid;
}

.artist-song-sort {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    align-items: center;
    margin: 0 0 14px;
    color: #687772;
    font-size: 13px;
    white-space: nowrap;
}

.artist-song-sort > span {
    margin-right: 1px;
}

.artist-song-sort a {
    display: inline-block;
    border: 0;
    border-radius: 999px;
    padding: 5px 8px;
    background: transparent;
    color: var(--green-link);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.artist-song-sort a:hover,
.artist-song-sort a:focus-visible {
    background: #edf4e6;
    color: var(--green-hover);
}

.artist-song-sort a.is-active {
    background: var(--green-deep);
    color: #fff;
}

.artist-song-list-header {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) minmax(150px, .8fr);
    gap: 16px;
    border-bottom: 2px solid #dbe3d4;
    padding: 9px 0;
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 800;
}

.artist-song-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
    padding: 12px 0;
    border-block: 1px solid #e1e7de;
}

.artist-song-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.artist-song-alphabet > span {
    margin-right: 3px;
    color: #687772;
    font-size: 13px;
}

.artist-song-alphabet button {
    min-width: 32px;
    min-height: 32px;
    border: 1px solid #bdcbb4;
    border-radius: 6px;
    padding: 4px 8px;
    background: #fff;
    color: var(--green-link);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.artist-song-alphabet button:hover,
.artist-song-alphabet button:focus-visible {
    border-color: var(--green-hover);
    color: var(--green-hover);
}

.artist-song-alphabet button.is-active {
    border-color: var(--green-deep);
    background: var(--green-deep);
    color: #fff;
}

.artist-song-filter output {
    flex: 0 0 auto;
    padding-bottom: 10px;
    color: #687772;
    font-size: 13px;
}

.artist-song-filter-empty {
    margin: 18px 0 4px;
    color: #687772;
}

.artist-song-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) minmax(150px, .8fr);
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #edf0f2;
}

.artist-song-initial-heading {
    display: grid;
    margin-top: 8px;
    border-bottom: 1px solid #dce5e2;
    padding: 12px 0 7px;
}

.artist-song-initial-heading span {
    color: #1d5046;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.artist-song-initial-heading[hidden],
.artist-song-row[hidden] {
    display: none;
}

.artist-song-translation {
    display: block;
    margin-top: 2px;
    color: #727272;
    line-height: 1.25;
}

.artist-song-title {
    font-size: 18px;
}

.artist-song-title.is-muted {
    color: #727272;
}

.artist-song-translation,
.artist-song-album {
    font-size: 14px;
}

.artist-song-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    font-size: 13px;
}

.artist-song-flags > span {
    padding: 1px 7px;
    border-radius: 999px;
    background: #e7f5ec;
    color: #24713e;
}

.artist-album-song-groups {
    display: grid;
    gap: 18px;
}

.artist-album-song-group {
    border: 1px solid #dde4d8;
    border-radius: 10px;
    padding: 18px;
    background: #fff;
}

.artist-album-song-group > header {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.artist-album-song-group > header:has(.artist-album-song-cover) {
    grid-template-columns: 88px minmax(0, 1fr);
}

.artist-album-song-group > header:not(:has(.artist-album-song-cover)) {
    grid-template-columns: 1fr;
}

.artist-album-song-cover img {
    display: block;
    width: 88px;
    height: 88px;
    aspect-ratio: 1;
    border-radius: 7px;
    object-fit: cover;
}

.artist-album-song-group h3 {
    margin: 0;
    font-size: 20px;
}

.artist-album-song-group header p {
    margin: 5px 0 0;
    color: #687772;
    font-weight: 700;
}

.artist-album-track-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding-left: 32px;
}

.artist-album-track-list li {
    border-top: 1px solid #edf0eb;
    padding: 9px 0 9px 4px;
    line-height: 1.25;
}

.artist-album-track-list li::marker {
    color: #687772;
    font-size: 13px;
    font-weight: 700;
}

.artist-album-track-list li > span {
    display: block;
    margin-top: 0;
    color: #727272;
    font-size: 13px;
    line-height: 1.2;
}

.artist-album-list {
    display: grid;
    gap: 14px;
}

.artist-album {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    text-decoration: none;
}

.artist-album img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
}

.artist-related-news {
    border: 1px solid #e1e5e8;
    border-radius: 12px;
    padding: 24px;
    background: #fff;
}

.artist-related-news h2,
.artist-related-news h3,
.artist-related-news p {
    margin-top: 0;
}

.artist-related-news > div > article {
    border-top: 1px solid #edf0f2;
    padding: 14px 0;
}

.artist-related-news time {
    color: #77827e;
    font-size: 12px;
}

.artist-related-news h3 {
    margin: 4px 0 6px;
    font-size: 17px;
    line-height: 1.3;
}

.artist-related-news h3 a,
.artist-related-more {
    text-decoration: none;
}

.artist-related-news p {
    color: #697570;
    font-size: 13px;
    line-height: 1.45;
}

.artist-related-more {
    font-size: 14px;
    font-weight: 700;
}

.artist-related-quotes {
    margin-top: 32px;
    border-radius: 16px;
    padding: clamp(22px, 4vw, 34px);
    background: #fff8e8;
}

.artist-related-quotes > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.artist-related-quotes h2 {
    margin: 0;
    color: #4d452f;
}

.artist-related-quotes > header a,
.artist-related-quotes blockquote a {
    text-decoration: none;
}

.artist-related-quotes > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.artist-related-quotes blockquote {
    margin: 0;
    border-left: 3px solid #d6b55d;
    padding: 12px 15px;
    background: rgb(255 255 255 / 65%);
}

.artist-related-quotes blockquote p {
    margin: 0;
    font-style: italic;
    line-height: 1.5;
}

.artist-related-quotes blockquote footer {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 9px;
    color: #786f58;
    font-size: 12px;
}

@media (max-width: 800px) {
    .artist-columns,
    .artist-related-quotes > div {
        grid-template-columns: 1fr;
    }

    .artist-song-list-header,
    .artist-song-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
        gap: 6px;
    }

    .artist-song-row {
        align-items: start;
        padding: 11px 0;
    }

    .artist-song-list-header {
        font-size: 11px;
    }

    .artist-song-title,
    .artist-song-translation,
    .artist-song-album {
        overflow-wrap: anywhere;
        line-height: 1.35;
    }

    .artist-song-title {
        font-size: 16px;
    }

    .artist-song-translation,
    .artist-song-album {
        font-size: 12px;
    }

    .artist-song-flags {
        font-size: 10px;
    }

    .artist-song-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .artist-song-filter output {
        padding-bottom: 0;
    }

    .artist-song-alphabet {
        width: 100%;
    }

    .artist-song-sort {
        width: 100%;
        gap: 2px;
        align-items: center;
        overflow-x: auto;
        font-size: 12px;
        scrollbar-width: none;
    }

    .artist-song-sort::-webkit-scrollbar {
        display: none;
    }

    .artist-song-sort a {
        padding: 4px 6px;
    }

    .artist-album-song-group {
        padding: 13px;
    }

    .artist-album-song-group > header,
    .artist-album-song-group > header:has(.artist-album-song-cover) {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 11px;
    }

    .artist-album-song-cover img {
        width: 68px;
        height: 68px;
    }

    .artist-album-song-group h3 {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .artist-header {
        grid-template-columns: 1fr;
    }

    .artist-media {
        width: min(240px, 100%);
        justify-self: center;
    }

    .artist-header > div {
        text-align: center;
    }

    .artist-title-row {
        justify-content: center;
    }
}
