// MUSIC-PENDRAMA — content data

const GENRES = {
  wuxia:   { en: 'WUXIA',           kr: '무협',        color: '#d8c9a3' },
  modern:  { en: 'MODERN FANTASY',  kr: '현판',        color: '#5fc4cf' },
  fantasy: { en: 'FANTASY',         kr: '판타지',      color: '#b3a3ff' },
  romance: { en: 'ROMANCE',         kr: '로맨스',      color: '#e8a890' },
  rofan:   { en: 'ROMANCE FANTASY', kr: '로맨스판타지', color: '#e8c488' },
  bl:      { en: 'BOYS LOVE',       kr: 'BL',         color: '#b88ae8' },
  history: { en: 'ALT HISTORY',     kr: '대체역사',    color: '#b08f5a' },
};

const MUSIC_STYLES = {
  kpop:    { en: 'K-POP / IDOL',     kr: '아이돌' },
  ballad:  { en: 'BALLAD',           kr: '발라드' },
  hiphop:  { en: 'HIP-HOP / RAP',    kr: '힙합·랩' },
  edm:     { en: 'EDM',              kr: 'EDM' },
  rock:    { en: 'ROCK',             kr: '락' },
  duet:    { en: 'DUET',             kr: '듀엣' },
  classical:{en: 'CLASSICAL / SCORE',kr: '클래식' },
};

// Albums — real pendrama novels (with covers) + placeholder slots
const ALBUMS = [
  { id: 'flawless-blade', genre: 'wuxia', style_tag: 'ballad', kr: '무결도왕', tracks: 8, accent: '#d8c9a3', style: 'photo',
    cover: 'assets/cover-flawless.jpg', novel: '하북팽가 무결도왕', novelGenre: '무협 장편소설',
    platform: 'kakaopage', readUrl: 'https://page.kakao.com/' },
  { id: 'labyrinth',     genre: 'fantasy', style_tag: 'rock', kr: '미궁설계자', tracks: 9, accent: '#b3a3ff', style: 'photo',
    cover: 'assets/cover-labyrinth.jpg', novel: '국가권력급 미궁설계자', novelGenre: '현대 판타지',
    platform: 'series', readUrl: 'https://series.naver.com/' },
  { id: 'project-idol',  genre: 'modern',  style_tag: 'kpop', kr: '국가권력급 아이돌', tracks: 10, accent: '#5fc4cf', style: 'photo',
    cover: 'assets/cover-project-idol.jpg', novel: '대한민국 프로젝트 국가권력급 아이돌', novelGenre: '현대 판타지',
    platform: 'kakaopage', readUrl: 'https://page.kakao.com/' },
  { id: 'returning-newbie', genre: 'bl', style_tag: 'duet', kr: '경력직 뉴비', tracks: 7, accent: '#b88ae8', style: 'photo',
    cover: 'assets/cover-newbie.jpg', novel: '경력직 뉴비는 네 과거를 알고 있다', novelGenre: 'BL · 로맨스',
    platform: 'ridi', readUrl: 'https://ridibooks.com/' },
  // placeholder slots for upcoming titles
  { id: 'blood-lotus',   genre: 'wuxia',   style_tag: 'classical', kr: '혈련', tracks: 6, accent: '#c94f4f', style: 'ring',
    novel: 'Coming Soon', novelGenre: '무협', platform: 'pendrama', readUrl: 'https://www.pendrama.com' },
  { id: 'tower-embers',  genre: 'fantasy', style_tag: 'edm', kr: '잿불의 탑', tracks: 5, accent: '#b3a3ff', style: 'strata',
    novel: 'Coming Soon', novelGenre: '판타지', platform: 'pendrama', readUrl: 'https://www.pendrama.com' },
  { id: 'night-bloom',   genre: 'rofan',   style_tag: 'ballad', kr: '밤의 개화', tracks: 5, accent: '#e8c488', style: 'bloom',
    novel: 'Coming Soon', novelGenre: '로맨스 판타지', platform: 'pendrama', readUrl: 'https://www.pendrama.com' },
  { id: 'regressor',     genre: 'modern',  style_tag: 'hiphop', kr: '다시, 17세', tracks: 8, accent: '#5fc4cf', style: 'ticker',
    novel: 'Coming Soon', novelGenre: '현대판타지 · 회귀', platform: 'pendrama', readUrl: 'https://www.pendrama.com' },
  { id: 'glass-dynasty', genre: 'history', style_tag: 'classical', kr: '유리왕조', tracks: 4, accent: '#d8c9a3', style: 'monarch',
    novel: 'Coming Soon', novelGenre: '대체역사', platform: 'pendrama', readUrl: 'https://www.pendrama.com' },
  { id: 'last-letter',   genre: 'romance', style_tag: 'ballad', kr: '마지막 편지', tracks: 5, accent: '#e8a890', style: 'letter',
    novel: 'Coming Soon', novelGenre: '로맨스', platform: 'pendrama', readUrl: 'https://www.pendrama.com' },
];

const PLATFORMS = {
  kakaopage: { name: '카카오페이지', short: 'K', color: '#ffd700', textColor: '#000' },
  series:    { name: '네이버 시리즈', short: 'N', color: '#03c75a', textColor: '#fff' },
  ridi:      { name: '리디', short: 'R', color: '#1f8ce6', textColor: '#fff' },
  munpia:    { name: '문피아', short: 'M', color: '#ff6b35', textColor: '#fff' },
  pendrama:  { name: 'pendrama.com', short: 'P', color: '#2a8a96', textColor: '#fff' },
};

// Virtual idol groups — one per genre, 3-5 members
const GROUPS = [
  {
    id: 'hyeolmaeng', en: 'HYEOL\u00b7MAENG', kr: '혈맹',
    genre: 'wuxia', tag: '무협 그룹',
    desc: '강호를 떠도는 다섯 자객. 《무결도왕》 OST로 데뷔한 펜드라마 무협 라인 대표 유닛.',
    members: ['SEO','YOUNG','SEOL','YA','HWA'],
    style: 'inked', styles: ['ballad','classical'],
    portrait: 'assets/cover-flawless.jpg',
  },
  {
    id: 'loop-zero', en: 'LOOP\u00b7ZERO', kr: '루프제로',
    genre: 'modern', tag: '현판·아이돌 그룹',
    desc: '《대한민국 프로젝트 국가권력급 아이돌》의 세계관에서 태어난 4인조 K-Pop 유닛.',
    members: ['01 JIN','02 HAE','03 RO','04 IAN'],
    style: 'digital', styles: ['kpop','hiphop'],
    portrait: 'assets/cover-project-idol.jpg',
  },
  {
    id: 'gate-nine', en: 'GATE IX', kr: '게이트 나인',
    genre: 'fantasy', tag: '판타지 그룹',
    desc: '《국가권력급 미궁설계자》의 세계를 질주하는 S급 헌터 크루.',
    members: ['ARA','HOEN','SIL','CHAE','YU'],
    style: 'rune', styles: ['rock','edm'],
    portrait: 'assets/cover-labyrinth.jpg',
  },
  {
    id: 'blue-letter', en: 'BLUE\u00b7LETTER', kr: '블루레터',
    genre: 'bl', tag: 'BL · 로맨스 그룹',
    desc: '《경력직 뉴비는 네 과거를 알고 있다》에서 피어난 듀엣.',
    members: ['NOA','SEON'],
    style: 'gilded', styles: ['duet','ballad'],
    portrait: 'assets/cover-newbie.jpg',
  },
];

// Latest release (feature video)
const LATEST = {
  tag: 'NEW RELEASE · 04/26',
  title: 'Flawless Blade',
  kr: '무결도왕 — 웹소설 《하북팽가 무결도왕》 Original Soundtrack',
  group: 'HYEOL·MAENG (혈맹)',
  duration: '3:58',
  desc: '펜드라마 무협 라인의 대표작 《하북팽가 무결도왕》을 위한 오리지널 OST. 눈 내리는 매화와 검의 서늘함을 현(絃)과 타악으로 담았다.',
  chips: ['MV', 'OFFICIAL', 'FULL'],
  cover: 'assets/cover-flawless.jpg',
};

// Video cards — latest mv subset
const MV_LIST = [
  { t: 'Flawless Blade — M/V', group: 'HYEOL·MAENG', genre: 'wuxia', style_tag:'ballad', dur: '3:58', tag: 'M/V · OFFICIAL', views: '조회수 1.2만회', cover:'assets/cover-flawless.jpg' },
  { t: 'Labyrinth Architect — M/V', group: 'GATE IX', genre: 'fantasy', style_tag:'rock', dur: '3:41', tag: 'M/V', views: '조회수 2.3만회', cover:'assets/cover-labyrinth.jpg' },
  { t: 'Project Idol — M/V', group: 'LOOP·ZERO', genre: 'modern', style_tag:'kpop', dur: '4:02', tag: 'M/V', views: '조회수 9.1천회', cover:'assets/cover-project-idol.jpg' },
  { t: 'Returning Newbie — M/V', group: 'BLUE·LETTER', genre: 'bl', style_tag:'duet', dur: '3:22', tag: 'M/V', views: '조회수 5.8천회', cover:'assets/cover-newbie.jpg' },
  { t: 'Flawless Blade — Jacket Film', group: 'HYEOL·MAENG', genre: 'wuxia', style_tag:'classical', dur: '2:14', tag: 'MAKING FILM', views: '조회수 6.4천회', cover:'assets/cover-flawless.jpg' },
];

const LYRIC_LIST = [
  { t: "Flawless Blade — '무결' Lyric", group: 'HYEOL·MAENG', genre: 'wuxia',  dur: '4:05', tag: 'LYRIC', views: '조회수 2.9천회', cover:'assets/cover-flawless.jpg' },
  { t: "Labyrinth — 'Gate Nine' Lyric", group: 'GATE IX', genre: 'fantasy', dur: '3:35', tag: 'LYRIC', views: '조회수 1.8천회', cover:'assets/cover-labyrinth.jpg' },
  { t: "Project Idol — 'Zero Hour' Lyric", group: 'LOOP·ZERO',  genre: 'modern',  dur: '3:50', tag: 'LYRIC', views: '조회수 4.1천회', cover:'assets/cover-project-idol.jpg' },
  { t: "Returning Newbie — '답장' Lyric", group: 'BLUE·LETTER', genre: 'bl', dur: '3:28', tag: 'LYRIC', views: '조회수 2.2천회', cover:'assets/cover-newbie.jpg' },
  { t: "Labyrinth — 'Below' Lyric", group: 'GATE IX', genre: 'fantasy', dur: '3:12', tag: 'LYRIC', views: '조회수 3.3천회', cover:'assets/cover-labyrinth.jpg' },
];

const SHORTS_LIST = [
  { t: "Teaser — 무결도왕 2026", group: 'HYEOL·MAENG', genre: 'wuxia',  views: '조회수 8.2천회', cover:'assets/cover-flawless.jpg' },
  { t: "미궁설계자 게이트 열림", group: 'GATE IX', genre: 'fantasy', views: '조회수 4.1천회', cover:'assets/cover-labyrinth.jpg' },
  { t: "국가권력급 아이돌 데뷔", group: 'LOOP·ZERO', genre: 'modern', views: '조회수 6.4천회', cover:'assets/cover-project-idol.jpg' },
  { t: "경력직 뉴비 첫 장면", group: 'BLUE·LETTER', genre: 'bl', views: '조회수 3.7천회', cover:'assets/cover-newbie.jpg' },
  { t: "무결도왕 타이틀 공개", group: 'HYEOL·MAENG', genre: 'wuxia', views: '조회수 5.5천회', cover:'assets/cover-flawless.jpg' },
  { t: "미궁설계자 1화 티저", group: 'GATE IX', genre: 'fantasy', views: '조회수 2.0천회', cover:'assets/cover-labyrinth.jpg' },
];

Object.assign(window, { GENRES, MUSIC_STYLES, PLATFORMS, ALBUMS, GROUPS, LATEST, MV_LIST, LYRIC_LIST, SHORTS_LIST });
