/* ==========================================================
   BOXXHEAD REAL TRENDING + POPULAR
========================================================== */

.bxtrend {
    width: min(1180px, calc(100% - 32px));
    margin: 66px auto 40px;
    padding-top: 38px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #fff;
}

.bxtrend-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 34px;
}

.bxtrend-kicker {
    display: block;
    margin-bottom: 8px;
    color: #e31616;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .18em;
}

.bxtrend-head h2 {
    margin: 0;
    font-size: clamp(31px, 5vw, 54px);
    line-height: .96;
    letter-spacing: -.05em;
    font-weight: 950;
}

.bxtrend-real {
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    color: rgba(255,255,255,.5);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.bxtrend-block {
    margin-top: 36px;
}

.bxtrend-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 15px;
    padding-bottom: 11px;
    border-bottom: 2px solid rgba(255,255,255,.12);
}

.bxtrend-section-head h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1;
    font-weight: 950;
}

.bxtrend-section-head span {
    color: rgba(255,255,255,.43);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.bxtrend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}

.bxtrend-card {
    min-width: 0;
    overflow: hidden;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 12px;
    transition:
        transform .18s ease,
        border-color .18s ease;
}

.bxtrend-card:hover {
    transform: translateY(-3px);
    border-color: rgba(227,22,22,.5);
}

.bxtrend-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #101010;
}

.bxtrend-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.bxtrend-card:hover .bxtrend-image img {
    transform: scale(1.025);
}

.bxtrend-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at center,
            rgba(227,22,22,.22),
            #0b0b0b 68%
        );
    color: rgba(255,255,255,.18);
    font-size: 34px;
    font-weight: 950;
}

.bxtrend-rank {
    position: absolute;
    left: 9px;
    bottom: 8px;
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e31616;
    color: #fff;
    font-size: 16px;
    font-weight: 950;
    box-shadow: 0 6px 20px rgba(0,0,0,.42);
}

.bxtrend-copy {
    padding: 14px 15px 17px;
}

.bxtrend-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: rgba(255,255,255,.43);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .09em;
}

.bxtrend-meta span:first-child {
    color: #e31616;
}

.bxtrend-copy h4 {
    margin: 0;
    font-size: 18px;
    line-height: 1.18;
    font-weight: 900;
}

.bxtrend-copy h4 a {
    color: #fff;
    text-decoration: none;
}

.bxtrend-copy p {
    margin: 9px 0 0;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    line-height: 1.5;
}


/* POPULAR */

.bxpopular-block {
    margin-top: 48px;
}

.bxpopular-list {
    display: grid;
    border-top: 1px solid rgba(255,255,255,.07);
}

.bxpopular-row {
    display: grid;
    grid-template-columns: 52px minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 8px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.bxpopular-number {
    color: rgba(255,255,255,.21);
    font-size: 28px;
    line-height: 1;
    font-weight: 950;
    text-align: center;
}

.bxpopular-main {
    min-width: 0;
}

.bxpopular-type {
    display: block;
    margin-bottom: 5px;
    color: #e31616;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: .11em;
}

.bxpopular-main h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
}

.bxpopular-main h4 a {
    color: #fff;
    text-decoration: none;
}

.bxpopular-main h4 a:hover {
    color: #e31616;
}

.bxpopular-views {
    min-width: 58px;
    text-align: right;
}

.bxpopular-views strong {
    display: block;
    font-size: 18px;
    line-height: 1;
}

.bxpopular-views span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.37);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
}


/* TABLET */

@media (max-width: 900px) {

    .bxtrend-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

}


/* MOBILE */

@media (max-width: 620px) {

    .bxtrend {
        width: min(100% - 22px, 1180px);
        margin-top: 46px;
        padding-top: 28px;
    }

    .bxtrend-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .bxtrend-grid {
        grid-template-columns: 1fr;
    }

    .bxpopular-row {
        grid-template-columns:
            38px
            minmax(0,1fr)
            auto;
        gap: 9px;
    }

    .bxpopular-number {
        font-size: 21px;
    }

    .bxpopular-main h4 {
        font-size: 14px;
    }

}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .bxtrend-card,
    .bxtrend-image img {
        transition: none;
    }

}
