/* ===================================== */
/*              ARTIST PAGE              */
/* ===================================== */

.artist-page {
    width: 100%;
    min-height: 100%;
}

/* Шапка артиста */
.artist-header {
    padding: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,204,0,0.1);
    border-radius: 0 0 30px 30px;
    animation: fadeInDown 0.6s ease;
}

.artist-header-content {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.artist-info {
    flex: 1;
}

.artist-name {
    font-size: clamp(32px, 5vw, 64px);
    margin: 0 0 20px 0;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* Статистика */
.artist-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Действия */
.artist-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.like-artist-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.like-artist-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.like-artist-btn.active {
    background: rgba(255,75,75,0.2);
    border-color: #ff4b4b;
    color: #ff4b4b;
}

/* Аватарка */
.artist-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 3px solid rgba(255,215,0,0.2);
}

.artist-avatar:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 25px 50px rgba(255,215,0,0.2);
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контент */
.artist-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Альбомы */
.artist-albums {
    margin-bottom: 50px;
}

.albums-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.albums-scroll::-webkit-scrollbar {
    height: 4px;
}

.albums-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

/* Карточка альбома */
.album-card {
    min-width: 160px;
    width: 160px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.03);
}

.album-card:hover {
    transform: translateY(-5px);
    background: rgba(255,204,0,0.05);
    border-color: rgba(255,204,0,0.2);
}

.album-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-card:hover .album-cover img {
    transform: scale(1.05);
}

.album-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: white;
    font-size: 24px;
}

.album-card:hover .album-play-overlay {
    opacity: 1;
}

.album-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-meta {
    font-size: 12px;
    color: var(--text-dim);
    margin: 0;
}

/* Таблица треков */
.artist-tracks {
    margin-top: 40px;
}

.tracks-table-container {
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.02);
}

.tracks-table {
    width: 100%;
    border-collapse: collapse;
}

.tracks-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    cursor: pointer;
    transition: background 0.2s ease;
}

.tracks-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.tracks-table tr.active {
    background: rgba(255,204,0,0.1);
}

.tracks-table td {
    padding: 12px 16px;
}

.track-index {
    width: 40px;
    color: var(--accent);
    font-weight: 600;
    font-family: monospace;
}

.track-title {
    max-width: 300px;
}

.track-name {
    font-weight: 500;
}

.track-plays,
.track-duration {
    color: var(--text-dim);
    font-size: 13px;
}

.track-menu {
    width: 40px;
    text-align: center;
}

/* Пустое состояние */
.no-tracks {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
    font-size: 14px;
}

/* Адаптив */
@media (max-width: 1024px) {
    .artist-header {
        padding: 30px;
    }
    
    .artist-avatar {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .artist-header {
        padding: 20px;
    }
    
    .artist-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .artist-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .artist-actions {
        justify-content: center;
    }
    
    .artist-content {
        padding: 0 20px 30px;
    }
    
    .album-card {
        min-width: 140px;
        width: 140px;
    }
    
    .tracks-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .track-title {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .artist-avatar {
        width: 120px;
        height: 120px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .album-card {
        min-width: 120px;
        width: 120px;
    }
}
/* Мягкая шапка вместо резкого чёрного прямоугольника */
.artist-page .artist-header {
    background:
        radial-gradient(circle at 50% 0%, hsl(var(--artist-hue, 45), 45%, 24%) 0%, transparent 62%),
        linear-gradient(180deg, hsl(var(--artist-hue, 45), 32%, 14%) 0%, hsl(var(--artist-hue, 45), 18%, 7%) 100%);
    border: 1px solid hsl(var(--artist-hue, 45), 35%, 24% / 0.35);
    border-radius: 28px;
    margin-bottom: 24px;
}

/* Плавный фон страницы вместо резкого чёрного обреза */
.artist-page {
    background:
        radial-gradient(ellipse at 50% 0%, hsl(var(--artist-hue, 45), 25%, 12% / 0.35) 0%, transparent 520px),
        #0a0a0a;
}

/* Шапка артиста — во всю ширину, без чёрной рамки */
.artist-page .artist-header {
    margin: -20px -40px 24px !important;
    border: none !important;
    border-radius: 0 0 28px 28px !important;
}

.artist-page .artist-avatar {
    width: 260px !important;
    height: 260px !important;
}

@media (max-width: 768px) {
    .artist-page .artist-header {
        margin: -70px -16px 18px !important;
        padding: 70px 20px 24px !important;
        border-radius: 0 0 22px 22px !important;
    }

    .artist-page .artist-avatar {
        width: 220px !important;
        height: 220px !important;
    }
}
