/* OneNav Child - clean detail recommendation, kept deliberately small. */
.oc-clean-detail-recommend {
    width: 100%;
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid var(--border-color, rgba(116, 116, 116, .12));
    border-radius: var(--theme-border-radius-md, 10px);
    background: var(--main-bg-color, #fff);
    box-shadow: 0 4px 14px rgba(30, 50, 80, .035);
}

.oc-clean-detail-head {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.oc-clean-detail-head > div {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 8px;
}

.oc-clean-detail-head h2 {
    margin: 0;
    color: var(--main-color, #484b4f);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.oc-clean-detail-head span {
    overflow: hidden;
    color: var(--muted-color, #8b9299);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oc-clean-detail-head > i {
    flex: 0 0 auto;
    color: var(--muted-color, #8b9299);
    font-size: 13px;
}

.oc-clean-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.oc-clean-detail-entry {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.oc-clean-detail-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 7px !important;
    border: 1px solid var(--border-color, rgba(116, 116, 116, .1));
    border-radius: 8px;
    background: var(--main-bg-color, #fff);
    transition: border-color .2s ease, transform .2s ease;
}

.oc-clean-detail-card:hover {
    border-color: var(--theme-color, #f1404b);
    transform: translateY(-1px);
}

.oc-clean-detail-card .item-image,
.oc-clean-detail-card .item-media {
    width: 34px;
    height: 34px;
    padding-bottom: 0;
}

.oc-clean-detail-card .item-title {
    overflow: hidden;
    color: var(--main-color, #484b4f);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oc-clean-detail-card .item-body > .text-muted {
    margin-top: 2px;
    overflow: hidden;
    color: var(--muted-color, #8b9299);
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oc-clean-detail-category {
    max-width: 100%;
    align-self: flex-start;
    padding: 1px 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--muted-bg-a-color, rgba(116, 116, 116, .08));
    color: var(--muted-color, #8b9299);
    font-size: 10px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oc-clean-detail-footer {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    margin: 14px 0 0;
    padding: 5px 8px;
    border-top: 1px solid var(--border-color, rgba(116, 116, 116, .1));
    color: var(--muted-color, #8b9299);
    opacity: .84;
    transition: opacity .25s ease, background-color .25s ease;
}

.oc-clean-detail-footer.is-ready {
    opacity: 1;
    background: var(--theme-color-bg, rgba(241, 64, 75, .035));
}

.oc-clean-detail-footer-label {
    flex: 0 0 auto;
    color: var(--main-color, #484b4f);
    font-size: 11px;
    font-weight: 500;
}

.oc-clean-detail-footer a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 4px;
    max-width: 260px;
    padding: 0 8px;
    overflow: hidden;
    border-radius: 7px;
    color: var(--muted-color, #8b9299);
    font-size: 11px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oc-clean-detail-footer a:hover,
.oc-clean-detail-footer a:focus-visible {
    color: var(--theme-color, #f1404b);
    background: var(--main-bg-color, #fff);
}

.oc-clean-detail-footer a[hidden] {
    display: none;
}

@media (max-width: 991px) {
    .oc-clean-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .oc-clean-detail-recommend {
        margin-bottom: 12px;
        padding: 8px;
    }

    .oc-clean-detail-head span {
        display: none;
    }

    .oc-clean-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .oc-clean-detail-card {
        padding: 6px !important;
    }

    .oc-clean-detail-card .item-media,
    .oc-clean-detail-card .item-image {
        width: 30px;
        height: 30px;
    }

    .oc-clean-detail-footer {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .oc-clean-detail-footer::-webkit-scrollbar {
        display: none;
    }

    .oc-clean-detail-footer a {
        flex: 0 0 auto;
        max-width: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oc-clean-detail-card {
        transition: none;
    }
}
