/**
 * "더보기" 버튼 — 무한스크롤 폐기 → 인트라식 (2026-08-10)
 *  - 데스크톱: 번호 페이지네이션(#simple-pagination) 사용, 버튼 숨김
 *  - 모바일(<=768px): 번호 페이지네이션 숫자 숨김 + "더보기" 버튼 노출
 *  공통 방법: custom-parts/css/ 에 위치, filemtime 버전으로 enqueue.
 *  케이팝 다크 네온 테마용 스타일.
 */
.load-more-wrap {
    text-align: center;
    margin: 24px 0 8px;
}

.load-more-btn {
    display: none; /* 기본 숨김 — 데스크톱은 번호 페이지네이션 */
    width: 100%;
    max-width: 420px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .45);
}

.load-more-btn:disabled {
    opacity: .6;
    cursor: default;
}

@media (max-width: 768px) {
    .load-more-btn {
        display: inline-block;
    }
    /* 모바일: 번호 페이지네이션 전체 숨김 — "더보기"로 대체(중복 방지) */
    #simple-pagination {
        display: none !important;
    }
}

/* ── 카테고리 빵부스러기 화면 표시 (복구 2026-08-10) ──
   .infinite-cat-container 스코프로 단일글 .kpop-breadcrumb 불간섭. 다크 네온 테마용. */
.infinite-cat-container .kpop-breadcrumb {
    margin: 4px 0 14px;
    font-size: 13px;
    line-height: 1.5;
}
.infinite-cat-container .kpop-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.infinite-cat-container .kpop-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, .6);
}
.infinite-cat-container .kpop-breadcrumb__item:not(:first-child)::before {
    content: "\203A";
    margin: 0 6px;
    color: rgba(255, 255, 255, .35);
}
.infinite-cat-container .kpop-breadcrumb__item a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
}
.infinite-cat-container .kpop-breadcrumb__item a:hover {
    text-decoration: underline;
}
.infinite-cat-container .kpop-breadcrumb__item.is-current {
    color: #fff;
    font-weight: 600;
}
.infinite-cat-container .kpop-breadcrumb .show-for-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ── 하위 카테고리 subnav (허브 강화, 2026-08-10) — 다크 네온 테마 ── */
.cat-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 18px;
}
.cat-subnav__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    font-size: 13px;
    line-height: 1.2;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s, color .15s, background .15s;
}
.cat-subnav__chip:hover {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}
.cat-subnav__chip.is-current {
    background: rgba(255, 255, 255, .9);
    border-color: transparent;
    color: #111;
}
.cat-subnav__count {
    font-size: 11px;
    opacity: .7;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 768px) {
    .cat-subnav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-inline: -4px;
        padding-inline: 4px;
    }
    .cat-subnav::-webkit-scrollbar { display: none; }
}

/* ── Font Awesome 아이콘 지연로드 팝인 CLS 방지 — 공간 예약 (2026-08-10) ──
   FA CSS가 늦게 적용돼도 아이콘 폭이 미리 잡혀 메타행이 안 밀림. */
.infinite-tag-item i[class*="fa-"] {
    display: inline-block;
    width: 1em;
    text-align: center;
    font-style: normal;
}

/* ── 카테고리 히어로(대표기사) — 인트라 기준 이식, 다크 네온 테마 (2026-08-10) ──
   대표 1(좌) + 작은 4(우 2×2). 케이팝 액센트=네온 핑크. 다크 플레이스홀더. */
.cat-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    margin: 4px 0 32px;
}
.cat-hero__main {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #16161c;
    aspect-ratio: 16 / 9;
    color: #fff;
    text-decoration: none;
}
.cat-hero__main-thumb,
.cat-hero__main-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.cat-hero__main-thumb img { object-fit: cover; transition: transform .5s ease; }
.cat-hero__main:hover .cat-hero__main-thumb img { transform: scale(1.04); }
.cat-hero__main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 55%);
    pointer-events: none;
}
.cat-hero__main-body {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1;
}
.cat-hero__badge {
    align-self: flex-start;
    padding: 4px 10px;
    background: #ff0084;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: .02em;
}
.cat-hero__main-title {
    font-size: clamp(1.4rem, 3.2vw, 2rem);
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-hero__main-date { font-size: 13px; opacity: .85; }

.cat-hero__subs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    width: 100%;
    height: 100%;
    align-content: stretch;
}
.cat-hero__sub {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #16161c;
    min-height: 0;
    margin: 0;
    padding: 0;
}
.cat-hero__sub a {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: #fff;
}
.cat-hero__sub-thumb,
.cat-hero__sub-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.cat-hero__sub-thumb img { object-fit: cover; transition: transform .4s ease; }
.cat-hero__sub a:hover .cat-hero__sub-thumb img { transform: scale(1.06); }
.cat-hero__sub::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
}
.cat-hero__sub-title {
    position: relative;
    z-index: 1;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 1024px) {
    .cat-hero { grid-template-columns: minmax(0, 1fr); }
    .cat-hero__subs { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr; height: auto; }
    .cat-hero__sub { aspect-ratio: 16 / 9; }
}
@media (max-width: 768px) {
    .cat-hero__main-title { font-size: 1.4rem; }
    .cat-hero__subs { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr 1fr; }
}
@media (max-width: 480px) {
    .cat-hero__main-title { font-size: 1.2rem; }
    .cat-hero__main-body { left: 14px; right: 14px; bottom: 14px; }
    /* 서브는 2열 유지(768 규칙 상속) — 메인을 명확한 최대요소로 두어 LCP 안정화 */
    .cat-hero__sub { aspect-ratio: 16 / 9; }
}

/* =============================================================
 * 카테고리 허브 헤더 메타 + 정렬/기간 필터 (인트라 이식 2026-08-11, 네온 다크)
 * ============================================================= */
.infinite-cat-container .infinite-cat-title-bar{align-items:center}
.infinite-cat-container .cat-count-chip{display:inline-flex;align-items:baseline;gap:2px;margin-left:10px;padding:3px 12px;border-radius:999px;background:rgba(255,0,132,.12);color:#ff5aa8;font-size:13px;font-weight:700;white-space:nowrap}
.infinite-cat-container .cat-count-chip strong{font-size:14px;font-weight:800}
.infinite-cat-container .cat-desc{margin:6px 0 0;color:#9aa0ab;font-size:14px;line-height:1.55;max-width:70ch}
.infinite-cat-container .cat-updated{margin:4px 0 0;color:#6f7681;font-size:12.5px}
.infinite-cat-container .cat-filters{display:flex;flex-wrap:wrap;gap:8px 22px;margin:18px 0 6px;padding:12px 14px;border:1px solid #2a2a34;border-radius:10px;background:#16161c}
.infinite-cat-container .cat-filters__group{display:flex;align-items:center;gap:10px}
.infinite-cat-container .cat-filters__label{font-size:12.5px;color:#8b91a0;font-weight:700;white-space:nowrap}
.infinite-cat-container .cat-filters__chips{display:flex;flex-wrap:wrap;gap:6px}
.infinite-cat-container .cat-filters__chip{display:inline-block;padding:7px 13px;border-radius:999px;border:1px solid #333340;background:#1c1c24;color:#b8bec9;font-size:13px;line-height:1;text-decoration:none;transition:border-color .15s ease,color .15s ease,background .15s ease}
.infinite-cat-container .cat-filters__chip:hover{border-color:#ff0084;color:#ff5aa8}
.infinite-cat-container .cat-filters__chip.is-active{background:#ff0084;border-color:#ff0084;color:#fff;font-weight:700}
@media (max-width:480px){
  .infinite-cat-container .cat-filters{gap:8px 14px;padding:10px 12px}
  .infinite-cat-container .cat-filters__chip{padding:7px 11px;font-size:12.5px}
  .infinite-cat-container .cat-count-chip{margin-left:8px;padding:3px 10px;font-size:12px}
}
