/* block:bf-banner/banner 1.0.0 */
/* 배너 광고 블록 — 여러 개면 옆으로 밀어 넘겨 본다 (한 장씩 / 여러 장 나란히) */
.bfb { --bfb-gap: 12px; position: relative; border-radius: var(--bfc-radius, var(--bf-radius, 6px)); }
.bfb-track { display: flex; gap: var(--bfb-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: inherit; }
.bfb-track::-webkit-scrollbar { display: none; }
.bfb-item { position: relative; display: block; flex: 0 0 calc((100% - var(--bfb-gap) * (var(--bfb-per, 1) - 1)) / var(--bfb-per, 1)); aspect-ratio: var(--bfb-ratio, auto); overflow: hidden; border-radius: inherit; background: var(--bfc-surface-2, #f5f5f6); scroll-snap-align: start; }
.bfb-item img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.bfb.is-auto .bfb-item img { height: auto; }
.bfb-tag { position: absolute; top: 8px; right: 8px; padding: 2px 6px; border-radius: 3px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.4; }
.bfb-nav { position: absolute; top: 50%; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-top: -17px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #27272a; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); cursor: pointer; opacity: 0; transition: opacity .15s; }
.bfb-nav .bf-icon { width: 20px; height: 20px; fill: currentColor; }
.bfb-nav.is-prev { left: 8px; }
.bfb-nav.is-next { right: 8px; }
.bfb:hover .bfb-nav, .bfb-nav:focus-visible { opacity: 1; }
.bfb-nav:disabled { visibility: hidden; }
.bfb-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.bfb-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 2px rgba(0, 0, 0, .3); transition: width .2s, background-color .2s; }
.bfb-dots i.is-on { width: 16px; background: #fff; }
.bfb-pause { position: absolute; right: 8px; bottom: 8px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; opacity: .75; transition: opacity .15s; }
.bfb-pause:hover, .bfb-pause:focus-visible { opacity: 1; }
.bfb-pause .bf-icon { width: 16px; height: 16px; fill: currentColor; }
.bfb-pause .bf-icon:last-child, .bfb-pause.is-stopped .bf-icon:first-child { display: none; }
.bfb-pause.is-stopped .bf-icon:last-child { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
    .bfb-track { scroll-behavior: auto; }
    .bfb-nav, .bfb-dots i, .bfb-pause { transition: none; }
}
.bfb--empty { aspect-ratio: var(--bfb-ratio, 4 / 1); }
.bfb-cta { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; min-height: 80px; padding: 12px; border: 1px dashed var(--bfc-line, var(--bf-color-border, #d4d4d8)); border-radius: inherit; color: var(--bfc-muted, var(--bf-color-muted, #71717a)); font-size: 13px; text-align: center; text-decoration: none; }
.bfb-cta .bf-icon { width: 24px; height: 24px; fill: currentColor; color: var(--bfc-primary, var(--bf-color-primary, #0ea5e9)); }
.bfb-cta b { color: var(--bfc-ink, var(--bf-color-text, #27272a)); font-size: 15px; }
.bfb-cta:hover { border-color: var(--bfc-primary, var(--bf-color-primary, #0ea5e9)); }
.bfb-hint { padding: 14px; border: 1px dashed #f59e0b; border-radius: 6px; color: #b45309; font-size: 13px; }
@media (hover: none) {
    .bfb-nav { display: none; }
}
@media (max-width: 600px) {
    .bfb { --bfb-gap: 8px; }
    .bfb[style*="--bfb-per:3"] .bfb-item, .bfb[style*="--bfb-per:4"] .bfb-item { flex-basis: calc((100% - var(--bfb-gap)) / 2); }
}

/* block:bf-search/popular 1.0.0 */
/* 인기 검색어 블록 (통합검색 결과 블록과 같은 모양) */
/* 사이드: 인기 검색어 */
.bfx-rank { padding: 16px 18px; border: 1px solid var(--x-line, var(--bfc-line, #e5e7eb)); border-radius: var(--x-radius, 6px); background: var(--x-surface, var(--bfc-surface, #fff)); }
.bfx-rank h2 { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.bfx-rank h2 small { color: var(--x-faint, #9ca3af); font-size: 11.5px; font-weight: 500; }
.bfx-rank ol { margin: 0; padding: 0; list-style: none; }
.bfx-rank li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.bfx-rank li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
.bfx-rank li a:hover { color: var(--x-primary, #0ea5e9); }
.bfx-rank__n { flex: 0 0 18px; color: var(--x-faint, #9ca3af); font-weight: 800; text-align: center; }
.bfx-rank__n.is-top { color: var(--x-primary, #0ea5e9); }
.bfx-rank__ch { display: inline-flex; align-items: center; color: var(--x-faint, #9ca3af); font-size: 11.5px; }
.bfx-rank__ch.is-new { color: #10b981; font-weight: 800; }
.bfx-rank__ch.is-up { color: var(--x-point, #ff6b5b); }
.bfx-rank__ch.is-down { color: var(--x-primary, #0ea5e9); }
.bfx-rank__empty { margin: 0; color: #9ca3af; font-size: 13px; }


