/* ===================================== */
/*               CARDS                   */
/* ===================================== */

/* ===== КАРТОЧКИ В GLASS СТИЛЕ ===== */
.artist-card, 
.album-card, 
.playlist-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.artist-card::before, 
.album-card::before, 
.playlist-card::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%);
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
}

.artist-card:hover, 
.album-card:hover, 
.playlist-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--accent-glow);
}

.artist-card:hover::before, 
.album-card:hover::before, 
.playlist-card:hover::before {
    opacity: 1;
}

/* ========== КАРТОЧКА АРТИСТА ========== */
.artist-card {
    text-align: center;
    min-width: 160px;
}

.artist-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 215, 0, 0.2);
    transition: var(--transition-normal);
}

.artist-card:hover .artist-img {
    border-color: var(--accent);
    transform: scale(1.05);
}

.artist-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-stats {
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ========== КАРТОЧКА АЛЬБОМА (ОБЩАЯ) ========== */
.album-card {
    min-width: 180px;
}

.album-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--border-radius-sm);
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.album-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.album-play-overlay::after {
    content: '▶';
    font-size: 40px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

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

/* Стили для информации в карточке альбома (общие) */
.album-info {
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.album-info b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.album-info small {
    color: var(--text-dim);
    font-size: 11px;
}

/* ========== КАРТОЧКА АЛЬБОМА НА СТРАНИЦЕ АРТИСТА ========== */
/* Эти стили будут применяться только для карточек внутри .artist-page */
.artist-page .album-card {
    min-width: 180px;
    width: 180px;
    padding: 14px;
}

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

/* ========== КАРТОЧКА АЛЬБОМА НА ГЛАВНОЙ ========== */
.home-page .album-card {
    min-width: 180px;
    width: 180px;
    padding: 14px;
}

.home-page .album-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-page .album-artist {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-page .album-meta {
    font-size: 11px;
    color: var(--accent);
}

/* ========== КАРТОЧКА ПЛЕЙЛИСТА ========== */
.playlist-card {
    min-width: 180px;
}

.playlist-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--accent);
}

.playlist-info {
    text-align: center;
}

.playlist-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-meta {
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ========== АДАПТИВ ДЛЯ КАРТОЧЕК ========== */
@media (max-width: 1024px) {
    .artist-card {
        min-width: 140px;
    }
    
    .artist-img {
        width: 100px;
        height: 100px;
    }
    
    .artist-name {
        font-size: 14px;
    }
    
    .album-card {
        min-width: 160px;
    }
    
    .artist-page .album-card,
    .home-page .album-card {
        min-width: 160px;
        width: 160px;
    }
}

@media (max-width: 768px) {
    .artist-card {
        min-width: 120px;
        padding: 15px 10px;
    }
    
    .artist-img {
        width: 80px;
        height: 80px;
    }
    
    .artist-name {
        font-size: 13px;
    }
    
    .album-card {
        min-width: 140px;
    }
    
    .album-info b {
        font-size: 13px;
    }
    
    .artist-page .album-card,
    .home-page .album-card {
        min-width: 140px;
        width: 140px;
    }
    
    .artist-page .album-title,
    .home-page .album-title {
        font-size: 13px;
    }
    
    .playlist-card {
        min-width: 140px;
    }
    
    .playlist-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .artist-card {
        min-width: 100px;
        padding: 12px 8px;
    }
    
    .artist-img {
        width: 65px;
        height: 65px;
    }
    
    .artist-name {
        font-size: 12px;
    }
    
    .album-card {
        min-width: 120px;
    }
    
    .album-info b {
        font-size: 12px;
    }
    
    .artist-page .album-card,
    .home-page .album-card {
        min-width: 120px;
        width: 120px;
    }
    
    .artist-page .album-title,
    .home-page .album-title {
        font-size: 12px;
    }
    
    .playlist-card {
        min-width: 120px;
    }
    
    .playlist-name {
        font-size: 12px;
    }
}

/* Анимации появления */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.artist-card, 
.album-card, 
.playlist-card {
    animation: cardAppear 0.5s ease-out;
    animation-fill-mode: both;
}

/* Задержки */
.artist-card:nth-child(1), 
.album-card:nth-child(1), 
.playlist-card:nth-child(1) { animation-delay: 0.05s; }

.artist-card:nth-child(2), 
.album-card:nth-child(2), 
.playlist-card:nth-child(2) { animation-delay: 0.1s; }

.artist-card:nth-child(3), 
.album-card:nth-child(3), 
.playlist-card:nth-child(3) { animation-delay: 0.15s; }

.artist-card:nth-child(4), 
.album-card:nth-child(4), 
.playlist-card:nth-child(4) { animation-delay: 0.2s; }

.artist-card:nth-child(5), 
.album-card:nth-child(5), 
.playlist-card:nth-child(5) { animation-delay: 0.25s; }

.artist-card:nth-child(6), 
.album-card:nth-child(6), 
.playlist-card:nth-child(6) { animation-delay: 0.3s; }

.artist-card:nth-child(7), 
.album-card:nth-child(7), 
.playlist-card:nth-child(7) { animation-delay: 0.35s; }

.artist-card:nth-child(8), 
.album-card:nth-child(8), 
.playlist-card:nth-child(8) { animation-delay: 0.4s; }

.artist-card:nth-child(9), 
.album-card:nth-child(9), 
.playlist-card:nth-child(9) { animation-delay: 0.45s; }

.artist-card:nth-child(10), 
.album-card:nth-child(10), 
.playlist-card:nth-child(10) { animation-delay: 0.5s; }