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

.artist-page {
    width: 100%;
    min-height: 100%;
    animation: fadeIn 0.4s ease;
}

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

.artist-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,215,0,0.1), transparent 70%);
    pointer-events: none;
}

.artist-header-content {
    display: flex;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.artist-info {
    flex: 1;
}

.artist-name {
    font-size: clamp(42px, 6vw, 72px) !important;
    margin: 0 0 25px 0 !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Статистика */
.artist-stats {
    display: flex;
    gap: 40px;
    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;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

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

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

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

.play-all-btn,
.shuffle-btn {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    letter-spacing: 0.5px;
}

.play-all-btn {
    background: linear-gradient(135deg, var(--accent), #ffaa00);
    color: #000;
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
}

.play-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,215,0,0.5);
}

.shuffle-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(5px);
}

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

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

.like-artist-btn:hover {
    background: rgba(255,255,255,0.1);
    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: 220px;
    height: 220px;
    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: 4px solid rgba(255,215,0,0.2);
    position: relative;
}

.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 60px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: var(--text-main);
    position: relative;
    padding-bottom: 10px;
}

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

.title-icon {
    font-size: 28px;
}

/* Секция альбомов */
.artist-albums-section {
    margin-bottom: 50px;
}

.albums-scroll-container {
    position: relative;
    margin: 0 -5px;
}

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

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

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

/* ========== КАРТОЧКА АЛЬБОМА НА СТРАНИЦЕ АРТИСТА ========== */
.artist-page .album-card {
    min-width: 180px !important;
    width: 180px !important;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    padding: 14px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.03);
    flex-shrink: 0;
}

.artist-page .album-card:hover {
    transform: translateY(-8px);
    background: rgba(255,215,0,0.05);
    border-color: rgba(255,215,0,0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.artist-page .album-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

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

.artist-page .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.3s ease;
    color: white;
    font-size: 32px;
    backdrop-filter: blur(2px);
}

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

.artist-page .album-info {
    text-align: center;
    width: 100%;
    overflow: hidden;
}

/* НАЗВАНИЕ АЛЬБОМА В КАРТОЧКЕ НА СТРАНИЦЕ АРТИСТА - ТОЛЬКО ДЛЯ .artist-page */
.artist-page .album-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 0 5px 0 !important;
    color: var(--text-main) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    text-shadow: none !important;
}

.artist-page .album-meta {
    font-size: 11px;
    color: var(--text-dim);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Секция треков */
.artist-tracks-section {
    margin-bottom: 50px;
}

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

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

.artist-tracks-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

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

.artist-tracks-table tr.active {
    background: rgba(255,215,0,0.1);
    position: relative;
}

.artist-tracks-table tr.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

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

.track-cover-cell {
    width: 50px;
}

.track-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #222;
}

.track-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.track-name {
    font-weight: 500;
    color: var(--text-main);
    font-size: 14px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-artist {
    font-size: 12px;
    color: var(--text-dim);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

/* Адаптив */
@media (max-width: 1024px) {
    .artist-header {
        padding: 30px;
    }
    
    .artist-avatar {
        width: 180px;
        height: 180px;
    }
    
    .artist-page .album-card {
        min-width: 160px !important;
        width: 160px !important;
        padding: 12px !important;
    }
    
    .artist-page .album-title {
        font-size: 13px !important;
    }
}

@media (max-width: 768px) {
    .artist-header {
        padding: 20px;
    }

    .artist-header-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .artist-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .artist-actions {
        justify-content: center;
    }

    .artist-content {
        padding: 0 20px 40px;
    }

    .artist-page .album-card {
        min-width: 140px !important;
        width: 140px !important;
        padding: 10px !important;
    }
    
    .artist-page .album-title {
        font-size: 12px !important;
    }
    
    .artist-page .album-meta {
        font-size: 10px;
    }

    .artist-avatar {
        width: 140px;
        height: 140px;
    }
    
    .artist-name {
        font-size: clamp(32px, 5vw, 48px) !important;
    }
}

@media (max-width: 480px) {
    .artist-name {
        font-size: 28px !important;
    }

    .artist-avatar {
        width: 120px;
        height: 120px;
    }
    
    .artist-page .album-card {
        min-width: 120px !important;
        width: 120px !important;
        padding: 8px !important;
    }
    
    .artist-page .album-title {
        font-size: 11px !important;
    }
    
    .artist-page .album-meta {
        font-size: 9px;
    }
}
/* ============================================
   МОБИЛЬНАЯ ШАПКА АРТИСТА
   Компактная карточка: аватар, имя, статистика 2x2,
   кнопки в две строки. Без гигантских отступов.
   ============================================ */
@media (max-width: 768px) {
    .artist-page .artist-header {
        padding: 18px 16px 22px;
        margin-bottom: 18px;
        border-radius: 0 0 22px 22px;
    }

    .artist-page .artist-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        max-width: 100%;
    }

    .artist-page .artist-avatar {
        order: -1;
        width: 104px;
        height: 104px;
        margin: 0 auto;
    }

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

    .artist-page .artist-name {
        font-size: clamp(24px, 8vw, 32px) !important;
        line-height: 1.15 !important;
        margin: 0 0 12px !important;
        text-align: center;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .artist-page .artist-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 0 0 14px;
        padding: 10px 0;
        width: 100%;
    }

    .artist-page .stat-item {
        padding: 8px 4px;
        background: rgba(255, 255, 255, 0.035);
        border-radius: 12px;
        min-width: 0;
    }

    .artist-page .stat-item:not(:last-child)::after {
        display: none;
    }

    .artist-page .stat-value {
        font-size: clamp(14px, 4.2vw, 18px);
        line-height: 1.2;
        white-space: normal;
        text-align: center;
    }

    .artist-page .stat-label {
        font-size: 9px;
        letter-spacing: 0.4px;
        margin-top: 3px;
        text-align: center;
    }

    .artist-page .artist-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .artist-page .play-all-btn {
        grid-column: 1 / -1;
        width: 100%;
        height: 46px;
        font-size: 14px;
        padding: 0 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .artist-page .shuffle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .artist-page .shuffle-btn,
    .artist-page .like-artist-btn {
        width: 100%;
        height: 42px;
        font-size: 12px;
        padding: 0 8px;
        white-space: nowrap;
        justify-content: center;
    }
}

/* Мобильная таблица популярных треков: всё влезает, меню ⋮ видно */
@media (max-width: 768px) {
    .artist-tracks-table {
        width: 100% !important;
        table-layout: fixed !important;
    }

    .artist-tracks-table .track-index {
        width: 28px !important;
        padding: 8px 2px !important;
        font-size: 12px;
    }

    .artist-tracks-table .track-cover-cell {
        width: 44px !important;
        padding: 8px 2px !important;
    }

    .artist-tracks-table .track-title-cell {
        width: auto !important;
        padding: 8px 6px !important;
    }

    .artist-tracks-table .track-duration-cell {
        width: 44px !important;
        padding: 8px 2px !important;
        font-size: 11px;
    }

    .artist-tracks-table .track-menu-cell {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        padding: 8px 0 !important;
    }

    .artist-tracks-table .track-menu-btn {
        width: 28px !important;
        min-width: 28px !important;
    }

    .tracks-table-container {
        overflow-x: hidden !important;
    }
}

@media (max-width: 768px) {
    .artist-page .artist-tracks-table td.track-cover-cell {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
    }

    .artist-page .artist-tracks-table td.track-menu-cell {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
    }
}

.album-artists {
    margin: 2px 0 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}
