/* B-Roll moment search (2026-11-16). Uses the app's own tokens from style.css. */
.bm-box { margin: 6px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bm-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; margin-bottom: 10px; }
.bm-title { font-size: 15px; font-weight: 600; }
.bm-opts { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: 13px; }
.bm-opts button { background: none; border: 0; border-bottom: 1px solid transparent; color: var(--muted); font: inherit; padding: 2px 0; cursor: pointer; }
.bm-opts button:hover { color: var(--ink); }
.bm-opts button.on { color: var(--ink); border-bottom-color: var(--ink); }
.bm-sep { width: 1px; height: 14px; background: var(--line); }
.bm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.bm-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.bm-card:hover, .bm-card:focus { border-color: var(--muted); outline: none; transform: translateY(-2px); }
.bm-th { position: relative; height: 130px; background: #000; display: flex; align-items: center; justify-content: center; }
.bm-th img { max-width: 100%; max-height: 100%; display: block; }
.bm-star { position: absolute; top: 6px; left: 6px; background: #000c; font: 11px ui-monospace, Menlo, monospace; padding: 2px 6px; border-radius: 3px; }
.bm-meta { padding: 8px 10px 10px; }
.bm-tc { font: 12px ui-monospace, Menlo, monospace; }
.bm-sh { font-size: 12.5px; line-height: 1.35; margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bm-nm { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-more { margin-top: 12px; }
.bm-modal { max-width: 760px; }
.bm-mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bm-mhead h3 { margin: 0; }
.bm-big { max-width: 100%; max-height: 52vh; display: block; margin: 0 auto 12px; background: #000; border-radius: 6px; }
.bm-desc { margin: 0 0 8px; line-height: 1.45; }
.bm-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.bm-tags span { border-bottom: 1px solid var(--line); }
.bm-tags span.soft { opacity: .6; font-style: italic; }
.bm-rows { font-size: 13px; color: var(--muted); margin: 3px 0; }
.bm-rows b { color: var(--ink); font-weight: 500; }
.bm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.bm-flag, .bm-owner { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.bm-flag-h { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.bm-flag-b { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.bm-flag input, .bm-owner input, .bm-owner textarea { width: 100%; }
.bm-flaglist { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.bm-near { display: flex; gap: 6px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
.bm-near div { flex: none; text-align: center; cursor: pointer; font: 11px ui-monospace, Menlo, monospace; color: var(--muted); }
.bm-near img { height: 64px; display: block; margin-bottom: 2px; border-radius: 3px; }
@media (max-width: 640px) { .bm-grid { grid-template-columns: repeat(2, 1fr); } .bm-th { height: 100px; } }
@media (prefers-reduced-motion: reduce) { .bm-card { transition: none; } }
/* 2026-11-21: suggestion panel when the search is empty, matched-words line, tags on each result card */
.bm-intro { padding: 2px 0 4px; }
.bm-hint { font-size: 13px; color: var(--muted); margin: 0 0 10px; line-height: 1.45; }
.bm-ideas { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.bm-ideas button { background: none; border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 13px; padding: 4px 11px; border-radius: 999px; cursor: pointer; }
.bm-ideas button:hover { border-color: var(--muted); }
.bm-tg { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 2px 0 6px; font-size: 11.5px; color: var(--muted); }
.bm-sh { -webkit-line-clamp: 4; }
