/* ============================================
   استایل فرانت‌اند هنرمندان
   ============================================ */

/* ========== آرشیو هنرمندان ========== */
.artists-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(30, 215, 96, 0.2);
}

.archive-header h1 {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.archive-header h1 i {
    color: #1ed760;
}

.archive-header p {
    color: #b3b3b3;
    font-size: 14px;
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.artist-card {
    background: var(--bg-card, #121212);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border, #2a2a30);
}

.artist-card:hover {
    transform: translateY(-6px);
    border-color: #1ed760;
    box-shadow: 0 8px 25px rgba(30, 215, 96, 0.15);
}

.artist-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.artist-card-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #0a0a0a;
}

.artist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.artist-card:hover .artist-card-image img {
    transform: scale(1.05);
}

.artist-card-follows {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: #1ed760;
}

.artist-card-info {
    padding: 14px;
    text-align: center;
}

.artist-card-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-card-meta {
    font-size: 12px;
    color: #b3b3b3;
}

/* ========== پاگینیشن ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination .page-numbers {
    padding: 8px 16px;
    background: var(--bg-card, #121212);
    border-radius: 8px;
    border: 1px solid var(--border, #2a2a30);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination .page-numbers.current {
    background: #1ed760;
    color: #000;
    border-color: #1ed760;
}

.pagination .page-numbers:hover:not(.current) {
    background: rgba(30, 215, 96, 0.15);
    border-color: #1ed760;
}

/* ========== صفحه تکی هنرمند ========== */
.artist-page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.artist-header {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95), rgba(10, 10, 10, 0.95));
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(30, 215, 96, 0.1);
}

.artist-header-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.artist-back,
.artist-share {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}

.artist-back:hover,
.artist-share:hover {
    background: #1ed760;
    color: #000;
}

.artist-info {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.artist-cover {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1ed760;
    flex-shrink: 0;
}

.artist-details {
    flex: 1;
}

.artist-details h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.artist-bio {
    color: #b3b3b3;
    line-height: 1.8;
    margin-bottom: 16px;
}

.artist-social {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.artist-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.2s;
}

.artist-social a:hover {
    background: #1ed760;
    color: #000;
}

.artist-follow {
    background: rgba(30, 215, 96, 0.15);
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #1ed760;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.artist-follow.following {
    background: rgba(30, 215, 96, 0.25);
}

.artist-follow:hover {
    background: #1ed760;
    color: #000;
}

/* ========== بخش‌های آثار ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h3 i {
    color: #1ed760;
}

.play-all-btn {
    background: rgba(30, 215, 96, 0.15);
    border: none;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #1ed760;
    cursor: pointer;
}

.play-all-btn:hover {
    background: #1ed760;
    color: #000;
}

/* ========== لیست آهنگ‌ها ========== */
.artist-songs-list {
    display: grid;
    gap: 8px;
    margin-bottom: 30px;
}

.artist-song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(30, 30, 35, 0.5);
    border-radius: 14px;
    transition: all 0.2s;
}

.artist-song-item:hover {
    background: rgba(42, 42, 48, 0.8);
}

.song-number {
    width: 40px;
    font-size: 13px;
    font-weight: 600;
    color: #1ed760;
    text-align: center;
}

.song-cover {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.song-info {
    flex: 1;
}

.song-title {
    font-size: 14px;
    font-weight: 500;
}

.song-actions {
    display: flex;
    gap: 6px;
}

.song-play,
.song-download,
.song-goto {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}

.song-play {
    background: rgba(30, 215, 96, 0.15);
    color: #1ed760;
}

.song-play:hover {
    background: #1ed760;
    color: #000;
}

.song-download,
.song-goto {
    background: rgba(255, 255, 255, 0.05);
    color: #b3b3b3;
}

.song-download:hover,
.song-goto:hover {
    background: #1ed760;
    color: #000;
}

/* ========== گرید آلبوم‌ها ========== */
.artist-albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.album-card {
    background: rgba(30, 30, 35, 0.5);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
}

.album-card:hover {
    transform: translateY(-4px);
    background: rgba(42, 42, 48, 0.8);
}

.album-cover {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.album-info {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.album-title {
    font-size: 13px;
    font-weight: 500;
}

.album-link {
    color: #1ed760;
    text-decoration: none;
}

/* ========== گرید ویدیوها ========== */
.artist-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.video-card {
    background: rgba(30, 30, 35, 0.5);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.video-play-overlay i {
    font-size: 40px;
    color: #1ed760;
}

.video-title {
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
}

/* ========== حالت خالی ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #b3b3b3;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 768px) {
    .artist-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .artist-cover {
        width: 120px;
        height: 120px;
    }
    
    .artist-details h1 {
        font-size: 22px;
    }
    
    .artist-social {
        justify-content: center;
    }
    
    .artist-albums-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .artist-videos-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .artists-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .artist-page-container {
        padding: 10px;
    }
    
    .artist-cover {
        width: 100px;
        height: 100px;
    }
    
    .artist-albums-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .artist-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .song-play,
    .song-download,
    .song-goto {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .archive-header h1 {
        font-size: 22px;
    }
}

/* فالو هنرمندان */
.artist-card-follows.is-zero { opacity: 0.78; color: #cfcfcf; }
.artist-card-following-badge { position:absolute; top:8px; right:8px; background:rgba(30,215,96,.92); color:#000; font-size:10px; font-weight:800; border-radius:20px; padding:4px 9px; box-shadow:0 8px 18px rgba(0,0,0,.28); }
.artist-card.is-user-following { border-color:rgba(30,215,96,.38); box-shadow:0 10px 28px rgba(30,215,96,.10); }
.artist-follow-stat [data-artist-follow-count] { font-weight:800; }
