.bloggers-list-box {
    margin-bottom: 80px;
}

.bloggers-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 448px;
    gap: 20px;
}

.blogger-card-link {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    color: #1a1a1a;
    text-decoration: none;
}

.blogger-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(var(--site-accent-rgb, 156, 28, 79), .08);
    border-radius: 20px;
    box-shadow: 0 8px 24px -8px rgba(var(--site-accent-rgb, 156, 28, 79), .12);
    font-family: Montserrat, sans-serif;
    transition: transform .3s ease, box-shadow .3s ease;
}

.blogger-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -12px rgba(var(--site-accent-rgb, 156, 28, 79), .22);
}

.blogger-card-cover {
    position: relative;
    flex: 0 0 192px;
    width: 100%;
    height: 192px;
    min-height: 192px;
    max-height: 192px;
    overflow: hidden;
    background: #f3f4f6;
}

.blogger-card-cover > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .7s ease;
}

.blogger-card:hover .blogger-card-cover > img {
    transform: scale(1.05);
}

.blogger-card-socials {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.blogger-card-social {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 28px;
    overflow: hidden;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff, 0 4px 10px -2px rgba(0, 0, 0, .35);
}

.blogger-card-social.soc-ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.blogger-card-social.soc-tt {
    background: #000;
}

.blogger-card-social.soc-tt i {
    text-shadow: 1px 1px 0 #FE2C55, -1px -1px 0 #25F4EE;
}

.blogger-card-social.soc-yt {
    background: #FF0000;
}

.blogger-card-social.soc-tg {
    background: #27A7E7;
}

.blogger-card-social.soc-fb {
    background: #1877F2;
}

.blogger-card-social.soc-x,
.blogger-card-social.soc-th {
    background: #000;
}

.blogger-card-social.soc-pin {
    background: #E60023;
}

.blogger-card-social.soc-in {
    background: #0A66C2;
}

.blogger-card-social.soc-tw {
    background: #9146FF;
}

.blogger-card-social.soc-vk {
    background: #0077FF;
}

.blogger-card-social-fallback {
    background: #fff;
}

.blogger-card-social-fallback img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.blogger-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.blogger-card-main-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.blogger-card-identity {
    min-width: 0;
}

.blogger-card-name {
    overflow: hidden;
    color: #1f2937;
    font-size: 18px;
    font-weight: 900;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blogger-card-handle {
    margin-top: 2px;
    overflow: hidden;
    color: var(--site-accent, #9C1C4F);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blogger-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.blogger-card-location-pin {
    color: #9ca3af;
    font-size: 9px;
    line-height: 1;
}

.blogger-card-gender {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.blogger-card-gender-m {
    color: #0284c7;
    background: #e0f2fe;
}

.blogger-card-gender-f {
    color: #db2777;
    background: #fce7f3;
}

.blogger-card-categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    min-height: 24px;
    margin-top: 12px;
    overflow: hidden;
}

.blogger-card-categories span {
    display: inline-flex;
    min-width: 0;
    max-width: calc(50% - 3px);
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    overflow: hidden;
    border-radius: 4px;
    color: #6b7280;
    background: #f3f4f6;
    font-size: 10px;
    font-weight: 500;
    line-height: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blogger-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(80px, 110px));
    justify-content: center;
    column-gap: 18px;
    margin-top: 16px;
    padding: 13px 0 12px;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-right: 0 !important;
    border-left: 0 !important;
    text-align: center;
}

.blogger-card-stat {
    min-width: 0;
}

.blogger-card-stat-value {
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blogger-card-stat-label {
    margin-top: 2px;
    color: #6b7280;
    font-size: 10px;
    font-weight: 500;
    line-height: 14px;
    text-transform: uppercase;
}

.blogger-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    min-height: 24px;
}

.blogger-card-price {
    min-width: 0;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}

.blogger-card-price strong {
    color: #1f2937;
    font-size: 14px;
    font-weight: 900;
}

.blogger-card-barter {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 6px;
    color: #059669;
    background: #ecfdf5;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
}

@media (max-width: 1100px) {
    .bloggers-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* === Адаптив до 768px === */
@media (max-width: 768px) {
    .base_con_box.bloggers-list-box {
        margin: 40px 0 !important;
        padding: 0 15px !important;
        box-sizing: border-box;
        width: 100%;
        overflow: hidden;
    }

    .bloggers-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 428px;
        gap: 16px;
    }

    .blogger-card-cover {
        flex-basis: 180px;
        height: 180px;
        min-height: 180px;
        max-height: 180px;
    }

    .blogger-card-body {
        padding: 16px;
    }
}

/* === Адаптив до 480px: основной мобильный вид === */
@media (max-width: 480px) {
    .bloggers-list {
        grid-template-columns: 1fr;
        grid-auto-rows: 468px;
    }

    .blogger-card-cover {
        flex-basis: 220px;
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }

    .blogger-card-name {
        font-size: 17px;
    }
}

/* === Адаптив до 360px: минимальный комфорт === */
@media (max-width: 360px) {
    .bloggers-list {
        grid-auto-rows: 443px;
    }

    .blogger-card-cover {
        flex-basis: 200px;
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }

    .blogger-card-body {
        padding: 14px;
    }

    .blogger-card-socials {
        top: 10px;
        right: 10px;
    }

    .blogger-card-social {
        width: 28px;
        height: 28px;
    }

    .blogger-card-social img {
        width: 24px;
        height: 24px;
    }
}

/* Desktop visual width aligned to the barter page (~1200px). */
@media (min-width: 769px) {
    main.main-bloggers .base_con_box {
        width: 1198px;
        max-width: 1198px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }
}
