/* Category / explore page — .page-category (vertical cards, đồng bộ homepage) */

.page-category#explore {
    padding-bottom: 40px;
}

.page-category#explore header {
    margin-bottom: 20px;
}

.page-category#explore .novel-list.category-cards {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px;
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

.page-category#explore .novel-list.category-cards .novel-item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    float: none !important;
}

.page-category#explore .novel-list.category-cards .novel-item > a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.page-category#explore .novel-list.category-cards .novel-cover {
    width: 100%;
    margin: 0 0 8px;
    padding-top: var(--st-cover-ratio, 140%);
    position: relative;
    border-radius: var(--st-radius-sm, 8px);
    overflow: hidden;
    background: var(--bg-color-8, #f1f5f9);
}

.page-category#explore .novel-list.category-cards .novel-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.page-category#explore .novel-list.category-cards .novel-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--st-text, var(--text-color, #1e293b));
}

.page-category#explore .novel-list.category-cards .novel-stats--card {
    margin-top: 0;
}

.page-category#explore .novel-list.category-cards .novel-stats.category-meta {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--st-text-muted, #64748b);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.page-category#explore .novel-list.category-cards .novel-stats.category-meta .category-meta-sep {
    opacity: 0.5;
}

.page-category#explore .novel-list.category-cards .novel-stats.category-meta .status {
    white-space: nowrap;
}

.page-category#explore .novel-list.category-cards .novel-stats-row-chapter,
.page-category#explore .novel-list.category-cards .novel-stats-row-chapter a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-category#explore .novel-item--empty {
    grid-column: 1 / -1;
    list-style: none;
    text-align: center;
    padding: 24px 12px;
}

.page-category#explore .novel-item--empty span {
    color: var(--st-text-muted, #64748b);
    font-size: 14px;
}

.page-category#explore nav.paging {
    width: 100%;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .page-category#explore .novel-list.category-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px 12px;
    }

    .page-category#explore .novel-list.category-cards .novel-title {
        font-size: 14px;
    }

    .page-category#explore .novel-list.category-cards .novel-stats.category-meta {
        font-size: 12px;
    }
}

@media (min-width: 1024px) {
    .page-category#explore .novel-list.category-cards {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 18px 14px;
    }
}

html[color-mode="dark"] .page-category#explore .novel-list.category-cards .novel-title,
body.dark .page-category#explore .novel-list.category-cards .novel-title {
    color: var(--st-text, #e2e8f0);
}

html[color-mode="dark"] .page-category#explore .novel-list.category-cards .novel-cover,
body.dark .page-category#explore .novel-list.category-cards .novel-cover {
    background: var(--st-bg, #0f172a);
}
