/* Artists Page Styles */
.artists-container {
    padding: 20px;
    width: 1200px;
    margin: 0 auto;
}

/* Controls Section */
.artists-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--form-color);
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--youtube-color);
    box-shadow: 0 0 0 2px var(--youtube-transparent-color);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--youtube-color);
}

.filter-select {
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--form-color);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--youtube-color);
}

/* Stats Overview */
.artists-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--form-color);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--youtube-color);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-subtle-color);
    font-size: 14px;
    line-height: 1.4;
}

/* Artists Grid */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.artist-card {
    background: var(--form-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.artist-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-avatar.large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--youtube-color), var(--youtube-dark-color));
}

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

.artist-avatar.large {
    font-size: 2.5em;
}

.artist-info {
    flex: 1;
    min-width: 0;
}

.artist-name {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.song-count, .play-count {
    font-size: 0.85em;
    color: var(--neutral-color);
    background: var(--bg-color);
    padding: 4px 8px;
    border-radius: 12px;
}

.recent-album {
    font-size: 0.8em;
    color: var(--youtube-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.icon-btn {
    all: unset;
}

/* Artist Header in Modal */
.artist-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.artist-details {
    flex: 1;
}

.artist-details h2 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    color: var(--text-color);
}

.artist-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.artist-stats .stat {
    text-align: center;
}

.artist-stats .stat-number {
    font-size: 1.5em;
    margin-bottom: 4px;
}

.artist-stats .stat-label {
    font-size: 0.8em;
}

.most-played {
    font-size: 0.9em;
    color: var(--text-subtle-color);
}

.play-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-weight: 600;
}

/* Songs List in Modal */
.artist-songs {
    padding: 25px 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 50vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--youtube-color) var(--form-color);
}

.modal-song {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.modal-song:hover {
    background: var(--bg-color);
}

.song-number {
    color: var(--text-subtle-color);
    font-size: 0.9em;
    min-width: 25px;
    text-align: center;
}

.song-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.song-details {
    flex: 1;
    min-width: 0;
}

.song-title {
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-album {
    font-size: 0.8em;
    color: var(--text-subtle-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-duration {
    color: var(--text-subtle-color);
    font-size: 0.85em;
    flex-shrink: 0;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-subtle-color);
}

.empty-state .icon.large {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: var(--border-color);
}

.empty-state p {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.empty-subtitle {
    font-size: 0.9em !important;
    opacity: 0.7;
}

.empty-state.error .icon.large {
    color: #ff4444;
}