:root{--bg:#fff;--fg:#16181d;--muted:#5d6470;--surface:#f1f3f6;--border:#dde1e7;--accent:#d92d20;--accent-fg:#fff;--error:#b42318;color:var(--fg);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}@media (prefers-color-scheme:dark){:root{--bg:#0f1115;--fg:#e8eaee;--muted:#9aa1ad;--surface:#1b1e25;--border:#2c313b;--accent:#f04438;--error:#f97066}}*{box-sizing:border-box}body{background:var(--bg);margin:0}a{color:inherit}.topbar{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.brand{color:var(--accent);font-size:1.25rem;font-weight:700;text-decoration:none}nav{align-items:center;gap:16px;display:flex}main{max-width:1100px;margin:0 auto;padding:16px}h1{font-size:1.4rem}button{font:inherit;background:var(--accent);color:var(--accent-fg);cursor:pointer;border:0;border-radius:6px;padding:8px 16px}button:disabled{opacity:.5;cursor:not-allowed}button.secondary{background:var(--surface);color:var(--fg);border:1px solid var(--border);margin-top:16px}button.danger{color:var(--error);border:1px solid var(--error);background:0 0}button.link{color:inherit;background:0 0;padding:0;text-decoration:underline}.muted{color:var(--muted)}.error{color:var(--error)}.grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;padding:0;list-style:none;display:grid}.card{flex-direction:column;gap:4px;text-decoration:none;display:flex}.thumb{aspect-ratio:16/9;background:var(--surface);color:var(--muted);border-radius:8px;place-items:center;font-size:2rem;display:grid;position:relative;overflow:hidden}.thumb img{object-fit:contain;background:#000;width:100%;height:100%}.duration{color:#fff;background:#000000bf;border-radius:4px;padding:1px 5px;font-size:.75rem;font-weight:600;position:absolute;bottom:6px;right:6px}.card-title{font-weight:600}.watch video{background:#000;border-radius:8px;width:100%;max-height:70vh}.upload{flex-direction:column;gap:16px;max-width:520px;display:flex}.upload label{flex-direction:column;gap:4px;font-weight:600;display:flex}.upload input{font:inherit;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:6px;padding:8px}progress{width:100%;max-width:520px}
