/* ============================================================
   КАРТОЧКИ АЛЬБОМОВ - АДАПТИВНАЯ СЕТКА
   ============================================================ */

/* Сетка - адаптивная */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2px;
    width: 100%;
    
    margin: 0 auto;
}

/* ===== КАРТОЧКА АЛЬБОМА ===== */
.album-card {
    background: var(--bg-card);
    border-radius: var(--radius); /* 8px вместо 16px */
    overflow: hidden;
    border: 1px solid var(--border-light);

    cursor: pointer;
    transition: var(--transition); /* 0.25s ease вместо cubic-bezier */
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.album-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-light); /* оставляем ту же рамку */

}

/* Обложка */
.album-cover {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.album-card:hover .album-cover img {
    transform: scale(1.02);
}

/* Градиент */
.album-cover-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
}

/* Счетчик фото */
.album-photos-count {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Информация */
.album-info {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.album-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.album-author span {
    font-size: 13px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1024px) {
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 0px;
    }
    
    .album-cover {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0px;
        padding: 0 02px;
    }
    
    .album-cover {
        height: 160px;
    }
    
    .album-info {
        padding: 10px 12px;
        gap: 4px;
    }
    
    .album-title {
        font-size: 14px;
    }
    
    .album-author span {
        font-size: 11px;
    }
    
    .author-avatar {
        width: 20px;
        height: 20px;
    }
    
    .album-photos-count {
        padding: 4px 10px;
        font-size: 10px;
        bottom: 8px;
        left: 8px;
    }
}

@media (max-width: 480px) {
    .albums-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    
    .album-cover {
        height: 220px;
    }
    
    .album-title {
        font-size: 16px;
    }
}