/* '이 소스는 ○○ 영상에 썼다' 표시 (0.20.0): 검색 카드 배지 · 상세 9칸 띠 색칠 · 쓴 곳 줄 · 유튜브 타임라인 */
/* 색은 app.css 토큰(--use, --recent …)을 써요 */
.usage-badges { display: inline; }
.badge.usage-badge { color: var(--use-ink); border-color: var(--warn-line); background: var(--warn-soft); cursor: help; }
.badge.recent-badge { color: var(--recent-ink); border-color: var(--recent); background: var(--recent); font-weight: 600; }

/* 9칸 띠 (영상 보정) */
.tl-cell.used { background: var(--use); color: var(--use-ink); }
.tl-cell.used.recent { background: var(--recent); color: var(--recent-ink); }
.tl-cell.used.lowuse { background: repeating-linear-gradient(135deg, var(--use-soft) 0 4px, var(--bar) 4px 8px); color: var(--use-ink); }
.sheet .grid3 button.used { background: rgba(var(--use-rgb), .38); }
.sheet .grid3 button.used.recent { background: rgba(var(--recent-rgb), .42); }
.sheet .grid3 button.used.lowuse { background: repeating-linear-gradient(135deg, rgba(var(--use-rgb), .3) 0 4px, transparent 4px 8px); }
.use-legend { font-size: var(--fs-sm); margin: 2px 0 6px 76px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.use-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.use-legend .sw.used { background: var(--use); }
.use-legend .sw.recent { background: var(--recent); }
.use-legend .sw.lowuse { background: repeating-linear-gradient(135deg, var(--use-soft) 0 3px, var(--bar) 3px 6px); }

/* 쓴 곳 줄 */
.use-lines { list-style: none; margin: 4px 0; padding: 0; }
.use-line { padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.use-line:last-child { border-bottom: 0; }
.use-line.low a { opacity: .8; }

/* 유튜브 영상 타임라인 (가로 = 결과물 시각, 블록 = 쓴 소스) */
.yt-tl { margin: 8px 0; }
.yt-tl-scroll { overflow-x: auto; padding-bottom: 4px; }
.yt-tl-box { position: relative; min-width: 560px; background: var(--bg-soft); border-radius: var(--radius); }
.yt-tl-axis { position: relative; height: 18px; font-size: var(--fs-sm); color: var(--muted); border-bottom: 1px solid var(--line); }
.yt-tl-axis span { position: absolute; top: 2px; transform: translateX(-50%); white-space: nowrap; }
.yt-tl-axis span:first-child { transform: none; }
.yt-tl-lane { position: relative; height: 34px; border-bottom: 1px solid var(--line); }
.yt-tl-block { position: absolute; top: 2px; height: 30px; min-width: 6px; border-radius: 3px; background: var(--heat-1); border: 0; overflow: hidden; white-space: nowrap; font-size: var(--fs-sm); padding: 0 3px; text-decoration: none; color: var(--heat-ink); cursor: pointer; display: flex; align-items: center; gap: 3px; }
.yt-tl-block:hover, .yt-tl-block:focus { outline: 2px solid var(--accent); z-index: 2; }
.yt-tl-block.low { background: repeating-linear-gradient(135deg, var(--heat-0) 0 4px, var(--bar) 4px 8px); }
.yt-tl-block img { height: 24px; width: 40px; object-fit: cover; border-radius: 2px; flex: none; }
.yt-tl-hint { font-size: var(--fs-sm); margin-top: 2px; }
@media (max-width: 600px) {
  .use-legend { margin-left: 0; }
  .yt-tl-box { min-width: 640px; }
}
