/* ===================================== */
/*           ARTIST LINKS                */
/* ===================================== */

.artist-link {
    color: var(--accent) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    position: relative !important;
    display: inline-block !important;
}

.artist-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.artist-link:hover::after {
    transform: scaleX(1);
}

.artist-link:hover {
    filter: brightness(1.2) !important;
}

/* В таблицах */
.track-row .artist-link {
    color: var(--accent) !important;
}

.track-row:hover .artist-link {
    color: #FFD700 !important;
}

/* Для активной строки */
.track-row.active .artist-link {
    color: #FFD700 !important;
}

.track-row.active .artist-link::after {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

/* Контейнер для нескольких артистов */
.artist-links-container {
    display: inline;
}

.artist-links-container .artist-link:not(:last-child)::after {
    content: ', ';
    color: var(--text-dim);
    pointer-events: none;
}

/* В карточках */
.artist-card .artist-link {
    color: var(--text-main) !important;
}

.artist-card .artist-link:hover {
    color: var(--accent) !important;
}

/* В поиске */
.result-track-artist .artist-link {
    color: var(--text-dim) !important;
    font-size: 12px;
}

.result-track-artist .artist-link:hover {
    color: var(--accent) !important;
}

/* В очереди */
.queue-artist .artist-link {
    color: var(--text-dim) !important;
}

.queue-artist .artist-link:hover {
    color: var(--accent) !important;
}

/* В истории */
.history-track-artist .artist-link {
    color: var(--text-dim) !important;
}

.history-track-artist .artist-link:hover {
    color: var(--accent) !important;
}

/* На странице альбома */
.album-artist .artist-link {
    font-size: 18px;
    color: var(--accent) !important;
}

/* В плейлистах */
.playlist-owner .artist-link {
    color: var(--accent) !important;
}

/* Адаптив */
@media (max-width: 768px) {
    .artist-link::after {
        display: none;
    }
    
    .artist-link:active {
        opacity: 0.7;
    }
}

/* В строках треков фиты не должны разрастаться и выделяться золотом */
.track-row .artist-links-container {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    color: var(--accent) !important;
}

.track-row .artist-links-container .artist-link {
    display: inline !important;
    color: var(--accent) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
}

.track-row .artist-links-container .artist-link::after {
    display: none !important;
}

.track-row:hover .artist-links-container .artist-link {
    color: var(--accent) !important;
}
