/* bigaiporn static adaptation - additive only, reuses the live site's
   variables (.site-header, .container, .video-grid, .tag-pill, --accent). */
.gen-frame { width: 100%; height: 900px; border: 0; border-radius: 8px; background: #000; }
.gen-note, .tpl-note { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 16px 0; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.gen-note strong, .tpl-note strong { color: var(--text-primary); }
.video-thumb { position: relative; }
video.tpl-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; pointer-events: none; }
video.tpl-hover.is-playing { opacity: 1; }
.tpl-gen { position: absolute; left: 8px; bottom: 8px; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.tpl-guide { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.tpl-guide h2 { font-size: 18px; color: #fff; margin-bottom: 12px; }
.tpl-guide li { margin-bottom: 8px; line-height: 1.6; font-size: 14px; color: var(--text-secondary); }
.tpl-guide ul { padding-left: 24px; }
.gen-best { font-size: 16px; font-weight: 600; color: #fff; margin: 12px 0; }
.btn-generate { display: inline-block; background: var(--accent); color: #fff; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; }
.btn-generate:hover { background: var(--accent-hover); color: #fff; }
.tpl-detail-media { max-width: 560px; margin: 0 auto; }
.tpl-detail-media video { width: 100%; border-radius: 8px; display: block; }
.tpl-refs img { width: 100%; border-radius: 8px; margin: 8px 0; }
.tpl-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 0 12px; }
main .tpl-strip { display: flex; }
.tpl-strip-media video.tpl-hover { pointer-events: none; }
.tpl-strip-card { flex: 0 0 210px; scroll-snap-align: start; }
.tpl-strip-card a { display: block; color: inherit; text-decoration: none; }
.tpl-strip-media { position: relative; display: block; aspect-ratio: 9/16; overflow: hidden; border-radius: 8px; background: #1a1a1a; }
.tpl-strip-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl-strip-title { display: block; font-weight: 600; font-size: 14px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-strip-meta { display: block; font-size: 12px; color: var(--text-secondary); }

/* Template feed portrait (2026-10-29): scoped to .tpl-feed-section only.
   Do NOT move this to a global .video-thumb rule: original video
   listings (/latest/ etc.) use 390x218 horizontal thumbs and must stay 16/9. */
.tpl-feed-section .video-thumb { aspect-ratio: 9/16; }
.tpl-feed-section .video-thumb img, .tpl-feed-section .video-thumb video.tpl-hover { width: 100%; height: 100%; object-fit: cover; }
