.mh-popular-posts {
    --mh-popular-lines: 2;
    --mh-popular-thumb: 72px;
    --mh-popular-rank: 1.35rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 1;
    color: #34252c;
}

.mh-popular-posts,
.mh-popular-posts *,
.mh-popular-posts *::before,
.mh-popular-posts *::after {
    box-sizing: border-box;
}

.mh-popular-posts,
.mh-popular-item__link,
.mh-popular-item__name,
.mh-popular-item__rank,
.mh-popular-posts__title {
    opacity: 1;
}

.mh-popular-posts__title {
    margin: 0 0 0.65rem;
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--mh-pink, #d85f93);
}

.mh-popular-posts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.mh-popular-item {
    margin: 0;
    padding: 0;
}

.mh-popular-item__link {
    display: grid;
    grid-template-columns: var(--mh-popular-rank) var(--mh-popular-thumb) minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    opacity: 1;
}

.mh-popular-posts--no-rank .mh-popular-item__link {
    grid-template-columns: var(--mh-popular-thumb) minmax(0, 1fr);
}

.mh-popular-posts--no-thumb .mh-popular-item__link {
    grid-template-columns: var(--mh-popular-rank) minmax(0, 1fr);
}

.mh-popular-posts--no-rank.mh-popular-posts--no-thumb .mh-popular-item__link {
    grid-template-columns: minmax(0, 1fr);
}

.mh-popular-item__rank {
    display: block;
    min-width: var(--mh-popular-rank);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    color: var(--mh-pink, #d85f93);
}

.mh-popular-item__media {
    display: block;
    width: var(--mh-popular-thumb);
    min-width: var(--mh-popular-thumb);
    max-width: var(--mh-popular-thumb);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 6px;
    background: #f4e8ed;
}

.mh-popular-item__img,
.mh-popular-item__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mh-popular-item__placeholder {
    background: linear-gradient(135deg, #f7dde7, #fff4f8);
}

.mh-popular-item__body {
    min-width: 0;
}

.mh-popular-item__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--mh-popular-lines, 2);
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
    color: #34252c;
}

.mh-popular-item__views {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    opacity: 1;
    color: #6b5560;
}

.mh-site-footer .mh-popular-posts,
.mh-footer-mobile .mh-popular-posts,
.mh-site-footer .mh-popular-item__link,
.mh-footer-mobile .mh-popular-item__link {
    color: #f6eef2;
    opacity: 1;
}

.mh-site-footer .mh-popular-posts {
    padding: 18px 20px 16px;
}

.mh-site-footer .mh-popular-posts__title,
.mh-footer-mobile .mh-popular-posts__title {
    color: var(--mh-pink, #d85f93);
}

.mh-site-footer .mh-popular-item__rank,
.mh-footer-mobile .mh-popular-item__rank {
    color: var(--mh-pink, #d85f93);
}

.mh-site-footer .mh-popular-item__name,
.mh-footer-mobile .mh-popular-item__name {
    color: #f6eef2;
    font-weight: 600;
}

.mh-site-footer .mh-popular-item__views,
.mh-footer-mobile .mh-popular-item__views {
    color: #e4c9d4;
}

@media (hover: hover) and (pointer: fine) {
    .mh-popular-item__link {
        transition: color 0.18s ease;
    }
    .mh-popular-item__img {
        transition: transform 0.2s ease;
    }
    .mh-popular-item__link:hover {
        transform: none;
        opacity: 1;
    }
    .mh-popular-item__link:hover .mh-popular-item__img {
        transform: scale(1.015);
    }
    .mh-popular-item__link:hover .mh-popular-item__name {
        color: var(--mh-pink, #d85f93);
    }
}

@media (max-width: 900px) {
    .mh-site-footer .mh-popular-posts {
        padding: 16px;
    }
}

@media (max-width: 390px) {
    .mh-popular-posts {
        --mh-popular-thumb: 64px;
        --mh-popular-rank: 1.2rem;
    }
    .mh-popular-item__name {
        font-size: 0.86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mh-popular-item__link,
    .mh-popular-item__img {
        transition: none;
    }
}
