.genre-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 16px;
}

@media (min-width: 576px) {
    .genre-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .genre-card-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.genre-card {
    display: block;
    border: 1px solid #cccccc;
    border-radius: 14px;
    padding: 7px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.genre-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    transform: translateY(-2px);
    text-decoration: none;
}

.genre-card__thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 260 / 330;
    overflow: hidden;
    background: #f2f2f2;
}

.genre-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.genre-card__body {
    padding: 10px 4px;
}

.genre-card__name {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.genre-card__count {
    display: inline-block;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}
