/* Social media video downloaders: tool page results (assets/js/tools/download.js) */
.dl-wait { display: flex; gap: 14px; align-items: center; padding: 18px 20px; }
.dl-wait b { display: block; color: var(--ink); }
.dl-wait small { color: var(--muted); }
.dl-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--c1); border-right-color: var(--c3); animation: dl-spin .8s linear infinite; flex: 0 0 auto; }
@keyframes dl-spin { to { transform: rotate(360deg); } }

.dl-res { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.dl-res + .dl-res { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.dl-media { position: relative; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 90% at 30% 10%, rgba(59,130,246,.25), rgba(139,92,246,.12) 60%, rgba(0,0,0,.2)); border: 1px solid var(--edge); aspect-ratio: 3 / 4; display: grid; place-items: center; }
.dl-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.dl-ph { font-size: 42px; opacity: .55; }
.dl-dur { position: absolute; right: 8px; bottom: 8px; z-index: 2; background: rgba(5,8,22,.82); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.dl-plat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c1); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25); padding: 3px 10px; border-radius: 999px; }
.dl-title { margin: 10px 0 4px; font-size: 18px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dl-by { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.dl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 14px; }
.dl-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--glass); border: 1px solid var(--edge); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.dl-btn:hover { transform: translateY(-2px); box-shadow: var(--glow); border-color: rgba(99,140,255,.5); text-decoration: none; }
.dl-btn.dl-video:first-child { background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(59,130,246,.18) 50%, rgba(139,92,246,.18)); border-color: rgba(59,130,246,.55); }
.dl-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); font-size: 18px; flex: 0 0 auto; }
.dl-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dl-txt b { font-size: 15px; }
.dl-txt small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 14px; flex: 0 0 auto; }
.dl-btn.busy { opacity: .85; pointer-events: none; }
.dl-btn.busy .dl-go { background: none; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--c1); animation: dl-spin .8s linear infinite; font-size: 0; }
.dl-btn.done small { color: #4ade80; }
.dl-btn.bad { border-color: rgba(248,113,113,.5); }
.dl-err { grid-column: 1 / -1; margin: 0; }

@media (max-width: 640px) {
  .dl-res { grid-template-columns: 1fr; }
  .dl-media { aspect-ratio: 16 / 10; max-height: 260px; }
  .dl-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-spin, .dl-btn.busy .dl-go { animation-duration: 2.4s; }
  .dl-btn, .dl-btn:hover { transition: none; transform: none; }
}
