// ============================================================
//  LIGA FC26 — DATA PERLAWANAN
//  Edit fail ini untuk kemaskini pasukan, admin atau jadual perlawanan
// ============================================================

// Senarai admin (semua peserta liga boleh log masuk sebagai admin dan
// tambah/edit/padam keputusan perlawanan)
const FC26_ADMINS = ['Waffiy', 'Ben', 'Shamim', 'Alep', 'Danny', 'Adam'];

const FC26_TEAMS = [
  {
    id: 'ger',
    name: 'Germany',
    player: 'Waffiy',
    logo: 'https://flagcdn.com/w320/de.png'
  },
  {
    id: 'bra',
    name: 'Brazil',
    player: 'Ben',
    logo: 'https://flagcdn.com/w320/br.png'
  },
  {
    id: 'esp',
    name: 'Spain',
    player: 'Shamim',
    logo: 'https://flagcdn.com/w320/es.png'
  },
  {
    id: 'eng',
    name: 'England',
    player: 'Alep',
    logo: 'https://flagcdn.com/w320/gb-eng.png'
  },
  {
    id: 'fra',
    name: 'France',
    player: 'Danny',
    logo: 'https://flagcdn.com/w320/fr.png'
  },
  {
    id: 'por',
    name: 'Portugal',
    player: 'Adam',
    logo: 'https://flagcdn.com/w320/pt.png'
  }
];

// Jadual Perlawanan — Home & Away, 6 pasukan (round-robin penuh)
// Bilangan pasukan GENAP (6) → TIADA bye/rehat, 3 perlawanan setiap gameweek.
// LEG 1 (GW1–5)  = setiap pasukan jumpa semua lawan sekali
// LEG 2 (GW6–10) = ulang sama pasangan, Home <-> Away ditukar
// 6 pasukan x 5 lawan x 2 leg / 2 = 30 perlawanan jumlah keseluruhan musim
// Format: { id, round, home, away, hg: null, ag: null }
// hg = Home Goals, ag = Away Goals (null = belum dimainkan)

const FC26_SCHEDULE = [
  // ── LEG 1 ──────────────────────────────
  // GAMEWEEK 1
  { id: 1,  round: 1, home: 'ger', away: 'por', hg: null, ag: null },
  { id: 2,  round: 1, home: 'bra', away: 'fra', hg: null, ag: null },
  { id: 3,  round: 1, home: 'esp', away: 'eng', hg: null, ag: null },

  // GAMEWEEK 2
  { id: 4,  round: 2, home: 'ger', away: 'fra', hg: null, ag: null },
  { id: 5,  round: 2, home: 'por', away: 'eng', hg: null, ag: null },
  { id: 6,  round: 2, home: 'bra', away: 'esp', hg: null, ag: null },

  // GAMEWEEK 3
  { id: 7,  round: 3, home: 'ger', away: 'eng', hg: null, ag: null },
  { id: 8,  round: 3, home: 'fra', away: 'esp', hg: null, ag: null },
  { id: 9,  round: 3, home: 'por', away: 'bra', hg: null, ag: null },

  // GAMEWEEK 4
  { id: 10, round: 4, home: 'ger', away: 'esp', hg: null, ag: null },
  { id: 11, round: 4, home: 'eng', away: 'bra', hg: null, ag: null },
  { id: 12, round: 4, home: 'fra', away: 'por', hg: null, ag: null },

  // GAMEWEEK 5
  { id: 13, round: 5, home: 'ger', away: 'bra', hg: null, ag: null },
  { id: 14, round: 5, home: 'esp', away: 'por', hg: null, ag: null },
  { id: 15, round: 5, home: 'eng', away: 'fra', hg: null, ag: null },

  // ── LEG 2 (Home/Away ditukar) ──────────────────────────────
  // GAMEWEEK 6
  { id: 16, round: 6,  home: 'por', away: 'ger', hg: null, ag: null },
  { id: 17, round: 6,  home: 'fra', away: 'bra', hg: null, ag: null },
  { id: 18, round: 6,  home: 'eng', away: 'esp', hg: null, ag: null },

  // GAMEWEEK 7
  { id: 19, round: 7,  home: 'fra', away: 'ger', hg: null, ag: null },
  { id: 20, round: 7,  home: 'eng', away: 'por', hg: null, ag: null },
  { id: 21, round: 7,  home: 'esp', away: 'bra', hg: null, ag: null },

  // GAMEWEEK 8
  { id: 22, round: 8,  home: 'eng', away: 'ger', hg: null, ag: null },
  { id: 23, round: 8,  home: 'esp', away: 'fra', hg: null, ag: null },
  { id: 24, round: 8,  home: 'bra', away: 'por', hg: null, ag: null },

  // GAMEWEEK 9
  { id: 25, round: 9,  home: 'esp', away: 'ger', hg: null, ag: null },
  { id: 26, round: 9,  home: 'bra', away: 'eng', hg: null, ag: null },
  { id: 27, round: 9,  home: 'por', away: 'fra', hg: null, ag: null },

  // GAMEWEEK 10
  { id: 28, round: 10, home: 'bra', away: 'ger', hg: null, ag: null },
  { id: 29, round: 10, home: 'por', away: 'esp', hg: null, ag: null },
  { id: 30, round: 10, home: 'fra', away: 'eng', hg: null, ag: null }
];
