// Mock data for all pages
const MOCK = {
  players: [
    { tag: 'Zephyr#EUW', name: 'Zephyr', role: 'JUNGLE', rank: 'Diamond II', lp: 47, tier: 'DIAMOND', div: 'Yordle', free: false, team: 'Iron Howl' },
    { tag: 'Nyx#FR1', name: 'Nyx', role: 'MIDDLE', rank: 'Master', lp: 142, tier: 'MASTER', div: 'Targon', free: false, team: 'Volt Riders' },
    { tag: 'Kaelen#EUW', name: 'Kaelen', role: 'TOP', rank: 'Platinum I', lp: 88, tier: 'PLATINUM', div: 'Ixtal', free: true, team: null },
    { tag: 'Mirae#FR', name: 'Mirae', role: 'BOTTOM', rank: 'Diamond IV', lp: 12, tier: 'DIAMOND', div: 'Yordle', free: false, team: 'Iron Howl' },
    { tag: 'Soren#EUW', name: 'Soren', role: 'UTILITY', rank: 'Platinum III', lp: 64, tier: 'PLATINUM', div: 'Ixtal', free: false, team: 'Ghost Note' },
    { tag: 'Viktor#NA', name: 'Viktor', role: 'JUNGLE', rank: 'Gold I', lp: 91, tier: 'GOLD', div: 'Targon', free: true, team: null },
    { tag: 'Lira#EUW', name: 'Lira', role: 'MIDDLE', rank: 'Diamond III', lp: 22, tier: 'DIAMOND', div: 'Targon', free: false, team: 'Volt Riders' },
    { tag: 'Aero#FR', name: 'Aero', role: 'BOTTOM', rank: 'Platinum II', lp: 71, tier: 'PLATINUM', div: 'Yordle', free: false, team: 'Iron Howl' },
  ],
  teams: [
    {
      name: 'Iron Howl', tag: 'IH', div: 'Yordle', w: 6, l: 1, wr: 86, streak: 3,
      roster: [
        { role: 'TOP', name: 'Kael', rank: 'D' },
        { role: 'JNG', name: 'Zephyr', rank: 'D' },
        { role: 'MID', name: 'Echo', rank: 'D' },
        { role: 'ADC', name: 'Mirae', rank: 'D' },
        { role: 'SUP', name: 'Quartz', rank: 'P' },
      ]
    },
    {
      name: 'Volt Riders', tag: 'VR', div: 'Targon', w: 5, l: 2, wr: 71, streak: 2,
      roster: [
        { role: 'TOP', name: 'Atlas', rank: 'D' },
        { role: 'JNG', name: 'Onyx', rank: 'M' },
        { role: 'MID', name: 'Nyx', rank: 'M' },
        { role: 'ADC', name: 'Vex', rank: 'D' },
        { role: 'SUP', name: 'Lira', rank: 'D' },
      ]
    },
    {
      name: 'Ghost Note', tag: 'GN', div: 'Ixtal', w: 4, l: 3, wr: 57, streak: -1,
      roster: [
        { role: 'TOP', name: 'Hush', rank: 'P' },
        { role: 'JNG', name: 'Reverb', rank: 'P' },
        { role: 'MID', name: 'Aria', rank: 'D' },
        { role: 'ADC', name: 'Pulse', rank: 'P' },
        { role: 'SUP', name: 'Soren', rank: 'P' },
      ]
    },
  ],
  casters: [
    { name: 'Hadès', role: 'PLAY-BY-PLAY', div: ['Yordle','Ixtal'], twitch: 'hades_lol', yt: '@hades' },
    { name: 'Solène', role: 'ANALYST', div: ['Targon'], twitch: 'solene_gg', yt: null },
    { name: 'BigBoss', role: 'COLOR', div: ['Yordle','Targon'], twitch: 'bigboss', yt: '@bigboss' },
    { name: 'Mira', role: 'HOST', div: ['Ixtal'], twitch: 'mira_host', yt: '@miratv' },
  ],
  matches: [
    { t1: 'Iron Howl', t2: 'Volt Riders', d1: 'Yordle', d2: 'Targon', when: 'Sam 24 Mai · 21:00', phase: 'Playoffs · DEMI', bo: 'BO3', cast: ['Hadès','BigBoss'], live: true },
    { t1: 'Ghost Note', t2: 'Sun Pact', d1: 'Ixtal', d2: 'Ixtal', when: 'Dim 25 Mai · 20:30', phase: 'Poules · J6', bo: 'BO1', cast: ['Solène'], live: false },
    { t1: 'Frost Vow', t2: 'Iron Howl', d1: 'Yordle', d2: 'Yordle', when: 'Lun 26 Mai · 21:00', phase: 'Poules · J6', bo: 'BO1', cast: ['Mira'], live: false },
  ],
  results: [
    { t1: 'Iron Howl', t2: 'Frost Vow', s1: 2, s2: 0, phase: 'Poules · J5', when: '20 Mai' },
    { t1: 'Volt Riders', t2: 'Sky Burn', s1: 2, s2: 1, phase: 'Poules · J5', when: '19 Mai' },
    { t1: 'Ghost Note', t2: 'Lumen', s1: 1, s2: 2, phase: 'Poules · J5', when: '18 Mai' },
  ],
  scrims: [
    { team: 'Iron Howl', div: 'Yordle', when: 'Mer 22 Mai · 21h', games: 3, sides: 'Mixed', contact: '@kael' },
    { team: 'Ghost Note', div: 'Ixtal', when: 'Jeu 23 Mai · 20h30', games: 2, sides: 'Blue', contact: '@hush' },
    { team: 'Volt Riders', div: 'Targon', when: 'Ven 24 Mai · 22h', games: 5, sides: 'Mixed', contact: '@atlas' },
  ],
  inscrits: [
    { name: 'Pyra', rank: 'Diamond IV', div: 'Yordle', when: 'il y a 12 min' },
    { name: 'Tilt-King', rank: 'Platinum II', div: 'Ixtal', when: 'il y a 1h' },
    { name: 'Crow', rank: 'Master', div: 'Targon', when: 'il y a 3h' },
    { name: 'Velvet', rank: 'Diamond II', div: 'Yordle', when: 'hier' },
  ],
  pronoLeaderboard: [
    { name: 'Solène', pts: 142, ex: 18, ok: 22 },
    { name: 'BigBoss', pts: 128, ex: 14, ok: 26 },
    { name: 'mygFan', pts: 109, ex: 11, ok: 24 },
    { name: 'Yuki', pts: 96, ex: 9, ok: 23 },
    { name: 'Ren', pts: 81, ex: 7, ok: 20 },
  ],
};

const DIV_COLOR = { Yordle: 'var(--div-y)', Ixtal: 'var(--div-i)', Targon: 'var(--div-t)' };
const TIER_COLOR = {
  IRON: '#675b59', BRONZE: '#9c8a72', SILVER: '#a5b5c7', GOLD: '#d4a84b',
  PLATINUM: '#4eb6a6', EMERALD: '#3fb670', DIAMOND: '#8fb9e8', MASTER: '#c084fc',
};
const ROLE_LABEL = { TOP: 'TOP', JUNGLE: 'JGL', MIDDLE: 'MID', BOTTOM: 'ADC', UTILITY: 'SUP' };

Object.assign(window, { MOCK, DIV_COLOR, TIER_COLOR, ROLE_LABEL });
