/* Wrapper to scope styles and beat theme specificity */
.hpb-wrap .hpb-hot-box {
    --hpb-accent: #ff5a3c;
    --hpb-bg1: #141414;
    --hpb-bg2: #222;
    --hpb-card: rgba(255,255,255,0.05);
    --hpb-card-hover: rgba(255,255,255,0.09);
    --hpb-text: #eaeaea;
    --hpb-muted: #a8b0ba;

    background: linear-gradient(135deg, var(--hpb-bg1), var(--hpb-bg2)) !important;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
    direction: rtl;
    position: relative;
    overflow: hidden;
}

/* subtle corner glow */
.hpb-wrap .hpb-hot-box::after {
    content: "";
    position: absolute;
    inset: -40% -40% auto auto;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(255,90,60,0.10), transparent 60%);
    pointer-events: none;
    transform: rotate(15deg);
}

/* Title */
.hpb-wrap .hpb-hot-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: #fff !important;
    margin: 0 0 16px 0;
}
.hpb-wrap .hpb-hot-accent {
    display: inline-block;
    width: 6px;
    height: 22px;
    background: var(--hpb-accent);
    border-radius: 4px;
}

/* Row */
.hpb-wrap .hpb-hot-list {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

/* Card */
.hpb-wrap .hpb-hot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: var(--hpb-text) !important;
    background: var(--hpb-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 10px;
    flex: 0 0 calc(25% - 12px); /* exactly 4 per row */
    min-width: 0;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    backdrop-filter: saturate(120%) blur(2px);
}
.hpb-wrap .hpb-hot-item:focus { outline: 2px solid var(--hpb-accent); outline-offset: 2px; }
.hpb-wrap .hpb-hot-item:hover {
    transform: translateY(-4px);
    background: var(--hpb-card-hover);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 10px 26px rgba(0,0,0,0.5);
}

/* Thumb */
.hpb-wrap .hpb-thumb-wrap {
    position: relative;
    display: inline-flex;
}
.hpb-wrap .hpb-hot-thumb {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.hpb-wrap .hpb-thumb-glow {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    box-shadow: 0 0 0 0 rgba(255,90,60,.0);
    transition: box-shadow .28s ease;
}
.hpb-wrap .hpb-hot-item:hover .hpb-hot-thumb { transform: scale(1.05); filter: saturate(110%); }
.hpb-wrap .hpb-hot-item:hover .hpb-thumb-glow { box-shadow: 0 0 0 3px rgba(255,90,60,.25); }

/* Texts */
.hpb-wrap .hpb-hot-body { display:flex; flex-direction:column; justify-content:center; min-width:0; }
.hpb-wrap .hpb-hot-head {
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hpb-wrap .hpb-hot-meta {
    margin-top: 6px;
    font-size: 12px;
    color: var(--hpb-muted) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .hpb-wrap .hpb-hot-item { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 600px) {
    .hpb-wrap .hpb-hot-list { gap: 12px; overflow-x:auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
    .hpb-wrap .hpb-hot-item { flex: 0 0 82%; }
    .hpb-wrap .hpb-hot-thumb { width:56px; height:56px; }
}
@media (max-width: 768px) {
    .hpb-wrap .hpb-hot-list {
        flex-direction: column;
        gap: 12px;
    }
    .hpb-wrap .hpb-hot-item {
        flex: 0 0 auto;
        width: 100%;
    }
}
