.karaoke-artists-catalog {
    --karaoke-card: #18181e;
    --karaoke-card-hover: #202027;
    --karaoke-border: rgba(255, 255, 255, 0.08);
    --karaoke-border-hover: rgba(168, 85, 247, 0.45);
    --karaoke-text: #f8f7fb;
    --karaoke-muted: #8e8a96;
    --karaoke-purple: #a855f7;
    --karaoke-pink: #ec4899;

    width: 100%;
    max-width: 1270px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    color: var(--karaoke-text);
}

.karaoke-artists-catalog__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.karaoke-artists-catalog__eyebrow {
    margin-bottom: 8px;
    color: var(--karaoke-purple);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.karaoke-artists-catalog__title {
    margin: 0;
    color: var(--karaoke-text);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.karaoke-artists-catalog__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 43px;
    height: 32px;
    padding: 0 13px;
    color: #e9d5ff;
    font-size: 13px;
    font-weight: 800;
    background: rgba(168, 85, 247, 0.13);
    border: 1px solid rgba(168, 85, 247, 0.24);
    border-radius: 20px;
}

/* Алфавит */

.karaoke-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 25px;
    padding: 13px;
    background:
        radial-gradient(
            circle at 0 0,
            rgba(168, 85, 247, 0.08),
            transparent 32%
        ),
        #141419;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 17px;
}

.karaoke-alphabet__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    color: #96919e;
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    background: #1b1b21;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.karaoke-alphabet__button:hover:not(:disabled) {
    color: #fff;
    background: #25252d;
    border-color: rgba(168, 85, 247, 0.42);
    transform: translateY(-2px);
}

.karaoke-alphabet__button.is-active {
    color: #fff;
    background:
        radial-gradient(
            circle at 25% 0,
            rgba(255, 255, 255, 0.2),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #7c3aed,
            var(--karaoke-purple),
            var(--karaoke-pink)
        );
    border-color: transparent;
    box-shadow:
        0 10px 24px rgba(126, 34, 206, 0.32),
        inset 0 1px rgba(255, 255, 255, 0.2);
}

.karaoke-alphabet__button:disabled {
    cursor: wait;
    opacity: 0.65;
}

/* Сетка — пять исполнителей в строке */

.karaoke-artists {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
    transition: opacity 0.2s ease;
}

.karaoke-artists-catalog.is-loading .karaoke-artists {
    opacity: 0.38;
    pointer-events: none;
}

/* Карточка исполнителя */

.karaoke-artist {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    color: var(--karaoke-text);
    text-decoration: none;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(168, 85, 247, 0.12),
            transparent 37%
        ),
        var(--karaoke-card);
    border: 1px solid var(--karaoke-border);
    border-radius: 18px;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.23),
        inset 0 1px rgba(255, 255, 255, 0.025);
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.karaoke-artist:hover {
    color: #fff;
    text-decoration: none;
    background-color: var(--karaoke-card-hover);
    border-color: var(--karaoke-border-hover);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.32),
        0 0 34px rgba(168, 85, 247, 0.08);
    transform: translateY(-4px);
}

.karaoke-artist__picture {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #0d0d11;
    border-radius: 17px 17px 0 0;
}

.karaoke-artist__picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition:
        filter 0.4s ease,
        transform 0.4s ease;
}

.karaoke-artist:hover .karaoke-artist__picture img {
    filter: brightness(1.08);
    transform: scale(1.06);
}

.karaoke-artist__picture-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            0deg,
            rgba(9, 9, 12, 0.38),
            transparent 50%
        ),
        linear-gradient(
            135deg,
            transparent 45%,
            rgba(168, 85, 247, 0.12)
        );
    pointer-events: none;
}

.karaoke-artist__content {
    display: block;
    min-width: 0;
    padding: 16px 46px 17px 16px;
}

.karaoke-artist__name {
    display: block;
    min-height: 40px;
    overflow: hidden;
    color: #f5f3f8;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.015em;
    transition: color 0.2s ease;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.karaoke-artist:hover .karaoke-artist__name {
    color: #e9d5ff;
}

.karaoke-artist__tracks {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: var(--karaoke-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.karaoke-artist__tracks svg {
    flex: 0 0 auto;
    color: #c084fc;
}

.karaoke-artist__arrow {
    position: absolute;
    right: 14px;
    bottom: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    color: #77727f;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.karaoke-artist:hover .karaoke-artist__arrow {
    color: #fff;
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.38);
    transform: translateX(3px);
}

/* Загрузка */

.karaoke-artists-catalog__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 16px;
    padding: 14px;
    color: #aaa6b3;
    font-size: 13px;
    font-weight: 650;
    background: #18181e;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
}

.karaoke-artists-catalog__loader[hidden] {
    display: none;
}

.karaoke-artists-catalog__spinner {
    display: block;
    width: 19px;
    height: 19px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--karaoke-purple);
    border-radius: 50%;
    animation: karaoke-artists-spin 0.7s linear infinite;
}

@keyframes karaoke-artists-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Пустой результат */

.karaoke-artists-empty {
    grid-column: 1 / -1;
    padding: 55px 30px;
    color: var(--karaoke-muted);
    text-align: center;
    background:
        radial-gradient(
            circle at 50% 0,
            rgba(168, 85, 247, 0.1),
            transparent 40%
        ),
        #18181e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.karaoke-artists-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 50%;
}

.karaoke-artists-empty__title {
    color: #f5f3f8;
    font-size: 20px;
    font-weight: 750;
}

.karaoke-artists-empty__text {
    margin-top: 7px;
    font-size: 14px;
}

/* Адаптивность */

@media (max-width: 1200px) {
    .karaoke-artists {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 950px) {
    .karaoke-artists {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .karaoke-artists-catalog__title {
        font-size: 27px;
    }

    .karaoke-artists {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .karaoke-alphabet {
        gap: 6px;
        padding: 11px;
    }

    .karaoke-alphabet__button {
        min-width: 36px;
        height: 36px;
        padding: 0 9px;
    }
}

@media (max-width: 430px) {
    .karaoke-artists-catalog__heading {
        margin-bottom: 17px;
    }

    .karaoke-artists-catalog__title {
        font-size: 25px;
    }

    .karaoke-artists {
        grid-template-columns: 1fr;
    }

    .karaoke-artist {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        min-height: 105px;
    }

    .karaoke-artist__picture {
        width: 105px;
        height: 105px;
        aspect-ratio: auto;
        border-radius: 17px 0 0 17px;
    }

    .karaoke-artist__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 14px 44px 14px 15px;
    }

    .karaoke-artist__name {
        min-height: 0;
    }

    .karaoke-artist__arrow {
        right: 12px;
        bottom: 50%;
        transform: translateY(50%);
    }

    .karaoke-artist:hover .karaoke-artist__arrow {
        transform: translate(3px, 50%);
    }
}