/* Artist Page Container */
.artist-page {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(81, 65, 100, 0.4) 0%, #121212 300px);
}

/* Artist Header */
.artist-header {
    position: relative;
    padding: 80px 40px 40px;
    background: linear-gradient(180deg, rgba(81, 65, 100, 0.8) 0%, rgba(81, 65, 100, 0.3) 100%);
    overflow: hidden;
}

.artist-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://via.placeholder.com/1920x400/514164/fff?text=Artist+Background') center/cover;
    opacity: 0.15;
    filter: blur(8px);
}

.artist-header-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.artist-verified {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #1db954;
    font-size: 14px;
    font-weight: 500;
}

.verified-icon {
    width: 24px;
    height: 24px;
}

.artist-name {
    font-size: 72px;
    font-weight: 900;
    margin: 0 0 20px 0;
    color: #fff;
    letter-spacing: -0.5px;
}

.artist-stats {
    font-size: 16px;
    color: #b3b3b3;
    font-weight: 500;
}

/* Main Content */
.artist-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

/* Section Styling */
.artist-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
}

.section-stats {
    font-size: 14px;
    color: #b3b3b3;
}

/* Popular Songs List */
.popular-songs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popular-song-item {
    display: grid;
    grid-template-columns: 40px 60px 1fr 120px 80px 60px;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.popular-song-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.song-rank {
    font-size: 16px;
    font-weight: 500;
    color: #b3b3b3;
    text-align: center;
}

.popular-song-item:hover .song-rank {
    display: none;
}

.song-cover-small {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
}

.song-cover-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay-small {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.popular-song-item:hover .play-overlay-small {
    opacity: 1;
}

.play-btn-small {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: background 0.2s ease;
}

.play-btn-small:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.song-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.song-title-popular {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-album-link {
    font-size: 14px;
}

.song-album-link a {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.song-album-link a:hover {
    color: #fff;
    text-decoration: underline;
}

.song-plays {
    font-size: 14px;
    color: #b3b3b3;
    text-align: right;
}

.song-duration-popular {
    font-size: 14px;
    color: #b3b3b3;
    text-align: right;
}

.song-actions-popular {
    display: flex;
    justify-content: flex-end;
}

.btn-icon {
    background: none;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}

.btn-icon:hover {
    color: #fff;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Albums Grid */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.album-card {
    background: #181818;
    border-radius: 8px;
    padding: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.album-card:hover {
    background: #282828;
    transform: translateY(-4px);
}

.album-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 16px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.album-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-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.3s ease;
}

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

.album-play-btn {
    width: 48px;
    height: 48px;
    background: #1db954;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

.album-card:hover .album-play-btn {
    transform: scale(1.05);
    background: #1ed760;
}

.album-card-info {
    padding: 0 4px;
}

.album-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-card-meta {
    font-size: 14px;
    color: #b3b3b3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-separator {
    font-size: 10px;
}

/* About Section */
.artist-about {
    background: #181818;
    border-radius: 8px;
    padding: 32px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #1db954;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* No Content Message */
.no-content {
    color: #b3b3b3;
    font-size: 16px;
    padding: 40px 0;
    text-align: center;
}

/* Back Button */
.back-button {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 40px;
}

.back-button a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b3b3b3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-button a:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .artist-name {
        font-size: 56px;
    }
    
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .artist-header {
        padding: 60px 20px 30px;
    }
    
    .artist-name {
        font-size: 40px;
    }
    
    .artist-content {
        padding: 20px;
    }
    
    .popular-song-item {
        grid-template-columns: 30px 50px 1fr 60px;
        gap: 12px;
        padding: 8px 12px;
    }
    
    .song-plays,
    .song-actions-popular {
        display: none;
    }
    
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
    
    .album-card {
        padding: 12px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .back-button {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .artist-name {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .popular-song-item {
        grid-template-columns: 40px 1fr 50px;
    }
    
    .song-rank {
        display: none;
    }
    
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}