Findings:

1. Medium: the embedded player is not receiving its configured column width because the rendered markup drops the `columns=24` setting. In [public/terminal-demo/index.html](/usr/home/code/ssg/public/terminal-demo/index.html:85), the shortcode example uses `columns=24`, but the actual player element at [line 89](/usr/home/code/ssg/public/terminal-demo/index.html:89) only renders `data-rows="4"` and no `data-cols`. The bootstrap code only reads `data-cols` in [public/assets/asciinema-init.js](/usr/home/code/ssg/public/assets/asciinema-init.js:41), so this page will fall back to the player default width instead of the intended 24 columns.

2. Low: the page injects `<link rel="stylesheet">` into article body content at [public/terminal-demo/index.html:87](/usr/home/code/ssg/public/terminal-demo/index.html:87). In HTML5, stylesheet `link` tags are metadata and should live in `<head>`; putting them inside post body makes the document invalid and can create brittle behavior if you later add more embeds or run stricter validation tooling.

No other high-severity issues stood out in this file. Residual risk is mostly around generator behavior rather than this one page: the same asset-in-body pattern appears on other pages too, so this likely needs a template/shortcode-level fix rather than a one-off edit.

## Recommendations

Standardize the Asciinema shortcode and runtime contract around `rows` and `cols`. The current mix of `columns` in author-facing examples and `data-cols` in rendered HTML creates an avoidable mismatch; the long-term API should expose `cols` as the canonical width parameter and consistently emit `data-cols` in generated markup.

The shortcode should stop injecting player asset tags into article body HTML. Its responsibility should be limited to emitting the player container markup and data attributes needed by the runtime. Shared CSS and JavaScript for the player should instead be loaded once per page from the template layer or the site asset pipeline, ideally in `<head>` for styles and near `</body>` for scripts.

The decorative shell or window chrome around embeds should also be simplified so any control-like elements are clearly presentational rather than implying real interaction semantics. That keeps the generated markup easier to reason about and reduces accessibility ambiguity.

Generator-level validation and tests should be added for malformed or regressed embed output. This is the kind of issue that is easy to reintroduce during template changes, so it is better enforced with rendering tests than with manual inspection of generated pages.

## Implementation Plan

Update [internal/shortcode/asciinema.go](/usr/home/code/ssg/internal/shortcode/asciinema.go) so the shortcode parser and emitted attributes use one canonical width parameter consistently. The preferred public parameter name should be `cols`; if backward compatibility matters, `columns` can be accepted as a legacy alias during parsing, but generated HTML should always normalize to `data-cols`.

Remove inline `<link>` and `<script>` emission from the shortcode output. The shortcode should render only the player container div and its data attributes, leaving page-level asset inclusion to the template or generation path that assembles the full document.

Move player asset inclusion into the page or template generation layer so shared Asciinema CSS and JavaScript are emitted once per page when at least one embed is present. That placement should keep stylesheet tags out of article body content and prevent duplicate asset tags on pages with multiple players.

Update documentation and examples so [content/terminal-demo.md](/usr/home/code/ssg/content/terminal-demo.md) and README snippets use the canonical parameter set consistently: `rows`, `cols`, `theme`, `loop`, `autoplay`, and `speed`. If `columns` remains supported for compatibility, document it only as a legacy alias rather than a primary interface.

Add tests for both shortcode rendering and full-page generation. Coverage should verify that `cols=24` renders `data-cols="24"`, that any legacy `columns=24` handling matches the documented compatibility policy, that shortcode output no longer contains stylesheet or player script tags, that generated pages place assets outside article body content, that multiple embeds share one asset include, that literal fenced or inline shortcode examples remain unexpanded, and that pages without Asciinema embeds do not receive unnecessary assets.
