"""SNS 플랫폼별 영상 규격 상수 모듈.

IDS Phase 5 — 모션 카드뉴스 (HTML→MP4)
지원 플랫폼: Instagram Reels (9:16), Twitter (16:9), Threads (1:1)
"""
from __future__ import annotations

SIZES: dict[str, tuple[int, int]] = {
    "instagram_reels": (1080, 1920),
    "twitter": (1920, 1080),
    "threads": (1080, 1080),
}

_DEFAULT_PLATFORM = "threads"


def get_size(platform: str) -> tuple[int, int]:
    """플랫폼 이름에 해당하는 (width, height) 튜플을 반환합니다.

    알 수 없는 플랫폼은 threads(1080×1080)로 폴백합니다.

    Args:
        platform: 플랫폼 이름 ('instagram_reels', 'twitter', 'threads')

    Returns:
        (width, height) 튜플
    """
    return SIZES.get(platform, SIZES[_DEFAULT_PLATFORM])
