/* App styles (no inline styles anywhere: the CSP has no 'unsafe-inline'). */

/* HTMX indicator styles live here because htmx-config sets includeIndicatorStyles:false. */
.htmx-indicator { opacity: 0; transition: opacity 200ms ease-in; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }

.video-table td { vertical-align: middle; }
.thumb-cell { width: 112px; }
.thumb { display: block; width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: #222; }

.tag.status-ready { background: hsl(153, 53%, 88%); color: hsl(153, 53%, 25%); }
.tag.status-failed { background: hsl(348, 86%, 92%); color: hsl(348, 70%, 40%); }
.tag.status-deleting { background: hsl(0, 0%, 90%); color: hsl(0, 0%, 35%); }
.tag.status-uploading, .tag.status-downloading, .tag.status-pending, .tag.status-processing {
  background: hsl(217, 71%, 92%); color: hsl(217, 71%, 35%);
}

/* API docs page */
.docs { min-width: 0; }  /* let wide <pre> blocks scroll inside the column instead of widening the page */
.docs-toc { position: sticky; top: 1rem; }
.docs .table-scroll { overflow-x: auto; margin-bottom: 1.5rem; }
.docs .table-scroll .table { margin-bottom: 0; }
.docs h2 { scroll-margin-top: 1rem; padding-top: 0.5rem; border-top: 1px solid hsl(0, 0%, 90%); }
.docs h2:first-of-type { border-top: 0; }
.code-block { position: relative; margin-bottom: 1.25rem; }
.code-block pre { padding-right: 5rem; white-space: pre; overflow-x: auto; }
.code-block .copy-btn { position: absolute; top: 0.5rem; right: 0.5rem; }
.docs blockquote.docs-summary { border-left: 4px solid hsl(217, 71%, 53%); background: hsl(217, 71%, 97%); }
