/* YouTube Thumbnail Downloader — tool-specific styles */
.ytd-input-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ytd-input-row input { flex: 1; min-width: 240px; background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--text); padding: 12px 14px; border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit; }
.ytd-input-row input:focus { outline: none; border-color: var(--accent); }

.ytd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.ytd-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.ytd-thumb-wrap { position: relative; aspect-ratio: 16/9; background: var(--card-2); overflow: hidden; }
.ytd-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ytd-badge { position: absolute; top: 8px; left: 8px; background: rgba(11,14,28,.75); color: var(--text);
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.ytd-card.ytd-unavailable .ytd-thumb-wrap { opacity: .35; }
.ytd-card.ytd-unavailable .ytd-badge { background: rgba(255,107,138,.85); color: #fff; }
.ytd-info { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ytd-info b { font-size: .88rem; }
.ytd-info small { display: block; color: var(--muted-2); font-size: .76rem; margin-top: 2px; }
.ytd-dl { background: none; border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: .8rem;
  font-weight: 600; padding: 7px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: all .15s; }
.ytd-dl:hover { color: var(--text); border-color: var(--accent); }
.ytd-dl.copied { color: var(--good); border-color: var(--good); }

@media (max-width: 480px) { .ytd-grid { grid-template-columns: 1fr; } }
