# task: Remotion ShortFormVideo 테마 문자열 resolve 버그 수정

## 문제
Remotion ShortForm 영상 렌더링 시, `theme` prop이 문자열("evan")로 전달되면 Theme 객체로 변환되지 않아 렌더링 에러 발생.

### 에러 메시지
```
TypeError: Cannot read properties of undefined (reading '0')
at src/scenes/HookScene.tsx:108
background: `linear-gradient(180deg, ${theme.bg_gradient[0]} 0%, ${theme.bg_gradient[1]} 100%)`
```

### 원인
- CLI: `npx remotion render ShortForm --props='{"theme":"evan"}'` → theme = 문자열 "evan"
- render_bridge.py: props JSON으로 전달 → theme = 문자열 "evan"
- ShortFormVideo 컴포넌트(`src/compositions/ShortForm/index.tsx`)가 theme을 그대로 하위 씬에 전달
- HookScene 등 모든 씬이 `theme.bg_gradient[0]` 접근 → undefined → 에러

## 수정 방법

### ShortFormVideo 컴포넌트 수정 (src/compositions/ShortForm/index.tsx)
```typescript
import { getTheme } from "../../themes";

// 컴포넌트 내부, theme prop 수신 직후:
const resolvedTheme = typeof theme === "string" ? getTheme(theme) : theme;
// 이후 resolvedTheme 사용
```

### getTheme 함수 확인 (src/themes/index.ts)
- 이미 존재: `getTheme(name: string): Theme` — 이름으로 테마 반환
- "Evan" 테마가 등록되어 있는지 확인 (THEMES 배열에 EVAN_THEME 포함 여부)

### 수정 대상 파일
1. `/home/jay/projects/ThreadAuto/remotion/src/compositions/ShortForm/index.tsx` — theme 문자열 resolve 추가
2. 필요시 `/home/jay/projects/ThreadAuto/remotion/src/themes/index.ts` — EVAN_THEME 등록 확인

### 테스트
1. `cd /home/jay/projects/ThreadAuto/remotion && npx tsc --noEmit` → 에러 0건
2. CLI 렌더링 테스트:
```bash
cd /home/jay/projects/ThreadAuto/remotion
npx remotion render ShortForm ../output/comparison/remotion_evan_test.mp4 --props='{"scenes":[{"type":"hook","elements":[{"type":"title","text":"테스트 제목","animation":"typing"},{"type":"body","text":"테스트 본문","animation":"typing"}],"duration":4}],"theme":"evan"}'
```
3. render_bridge.py 경유 테스트:
```bash
cd /home/jay/projects/ThreadAuto
python3 -c "
import sys; sys.path.insert(0,'.')
from remotion.render_bridge import render_shortform
import json
with open('remotion/comparison/sample_slides.json') as f:
    slides = json.load(f)
render_shortform(slides=slides, output_path='output/comparison/remotion_evan_test.mp4', style_name='evan')
print('OK')
"
```
4. 성공 시 렌더링된 mp4 파일 경로를 보고서에 포함

### 참고 파일
- `/home/jay/projects/ThreadAuto/remotion/src/themes/evan.ts` — EVAN_THEME 정의
- `/home/jay/projects/ThreadAuto/remotion/src/themes/index.ts` — getTheme 함수, THEMES 배열
- `/home/jay/projects/ThreadAuto/remotion/src/scenes/HookScene.tsx` — theme.bg_gradient 사용처

## 작업 레벨: Lv.1 (파일/라인 특정, 수정 간단)
