// Sample reports + recent checks data

const SAMPLE_REPORTS = {
  "wellness-coffee": {
    id: "wellness-coffee",
    url: "https://www.tiktok.com/@wellness_daily/video/7234891",
    platform: "TikTok",
    creator: "@wellness_daily",
    title: "5 morning habits that changed my health forever",
    duration: "1:24",
    date: "Apr 28, 2026",
    score: 72,
    headline: "Reliable with caution",
    summary: "This video contains five health claims. Two are well-supported by clinical evidence, two are misleading or oversimplified, and one has no credible source.",
    counts: { accurate: 2, mostly: 1, misleading: 1, false: 0, unverified: 1 },
    claims: [
      {
        text: "Drinking lemon water in the morning cures diabetes.",
        verdict: "false", verdictLabel: "False", confidence: 96,
        explanation: "There is no clinical evidence that lemon water cures diabetes. Type 1 and Type 2 diabetes require medical management; no dietary intervention reverses the condition outright.",
        evidence: "The American Diabetes Association and a 2023 systematic review of 41 trials found no causal link between citrus consumption and diabetes remission.",
        sources: [
          { title: "Diabetes Care: Standards of Care 2026", domain: "diabetesjournals.org" },
          { title: "NIH — Diabetes Overview", domain: "niddk.nih.gov" },
          { title: "Cochrane Review: Citrus & Glucose Control", domain: "cochranelibrary.com" },
        ]
      },
      {
        text: "The WHO recommends adults sleep between 7 and 9 hours per night.",
        verdict: "accurate", verdictLabel: "Accurate", confidence: 99,
        explanation: "This matches current public health guidance from multiple authoritative bodies.",
        evidence: "The CDC and the National Sleep Foundation both publish 7–9 hours as the recommended range for adults aged 18–64.",
        sources: [
          { title: "CDC — How Much Sleep Do I Need?", domain: "cdc.gov" },
          { title: "National Sleep Foundation Guidelines", domain: "thensf.org" },
        ]
      },
      {
        text: "Coffee before noon reduces cancer risk by 50%.",
        verdict: "misleading", verdictLabel: "Misleading", confidence: 84,
        explanation: "Some observational studies link coffee with lower risk of certain cancers, but the magnitude is overstated and the timing claim is unsupported.",
        evidence: "A 2024 IARC review found coffee may reduce risk of liver and endometrial cancer modestly. No study isolates time-of-day effects.",
        sources: [
          { title: "IARC Monograph: Coffee, Maté, & Hot Beverages", domain: "iarc.who.int" },
          { title: "Harvard T.H. Chan — Coffee", domain: "hsph.harvard.edu" },
        ]
      },
      {
        text: "Cold showers boost the immune system within two weeks.",
        verdict: "mostly", verdictLabel: "Mostly Accurate", confidence: 71,
        explanation: "A randomized Dutch trial found a measurable reduction in self-reported sick days, though the immunological mechanism is debated.",
        evidence: "Buijze et al. 2016 (PLOS ONE) — 29% fewer sick-day calls among cold-shower group across 3,000 participants.",
        sources: [
          { title: "PLOS ONE: The Effect of Cold Showering", domain: "journals.plos.org" },
        ]
      },
      {
        text: "There is a 'wellness frequency' at 528 Hz that repairs your DNA.",
        verdict: "unverified", verdictLabel: "No Evidence", confidence: 92,
        explanation: "No peer-reviewed research supports the claim that audio frequencies repair DNA. The claim originates from internet folklore, not science.",
        evidence: "PubMed and Google Scholar searches return zero credible studies. The DNA molecule does not respond to audible frequencies in the way described.",
        sources: [
          { title: "NIH PubMed — search: 528 Hz DNA", domain: "pubmed.ncbi.nlm.nih.gov" },
        ]
      },
    ],
    transcript: [
      { t: "0:00", text: "Good morning everyone, today I'm going to share five habits that completely transformed my health." },
      { t: "0:08", text: "First, I drink lemon water every morning. This actually cures diabetes — most doctors won't tell you this." },
      { t: "0:21", text: "Second, I sleep between seven and nine hours, which the WHO recommends for adults." },
      { t: "0:32", text: "Third, I drink coffee before noon. Studies show this can reduce cancer risk by fifty percent." },
      { t: "0:46", text: "Fourth, cold showers in the morning. Within two weeks your immune system is so much stronger." },
      { t: "0:58", text: "And finally, I listen to a wellness frequency at 528 Hz which repairs DNA at the cellular level." },
      { t: "1:14", text: "Try these for a week and let me know how you feel." },
    ],
  },

  "crypto-prediction": {
    id: "crypto-prediction", url: "https://x.com/cryptoking/status/...", platform: "X",
    creator: "@cryptoking", title: "Bitcoin will hit $250K by July — guaranteed",
    duration: "0:48", date: "Apr 27, 2026", score: 18, headline: "Mostly unsupported",
    summary: "This short video makes three financial claims. None are supported; one is provably false; two are speculative predictions framed as certainty.",
    counts: { accurate: 0, mostly: 0, misleading: 1, false: 1, unverified: 1 },
    claims: [
      { text: "Bitcoin is guaranteed to double by July.", verdict: "false", verdictLabel: "False", confidence: 98, explanation: "No asset price movement can be 'guaranteed.' Financial regulators in multiple jurisdictions classify guaranteed-return claims as misleading.", evidence: "SEC and FCA both prohibit guaranteed-return marketing for securities and crypto products.", sources: [{ title: "SEC — Investor Bulletin: Crypto Assets", domain: "sec.gov" }] },
      { text: "Every halving cycle has been followed by a 4× run-up.", verdict: "misleading", verdictLabel: "Misleading", confidence: 76, explanation: "Past cycles have varied widely in magnitude and timing; presenting historical pattern as future certainty is misleading.", evidence: "Bitcoin price history (CoinGecko) shows post-halving returns ranging from negative to several thousand percent.", sources: [{ title: "CoinGecko — Bitcoin Halving History", domain: "coingecko.com" }] },
      { text: "Major institutions are about to allocate 5% of treasury reserves to crypto.", verdict: "unverified", verdictLabel: "No Evidence", confidence: 88, explanation: "No public filings or central-bank announcements support this claim.", evidence: "Searches of SEC EDGAR and central-bank press archives return no matching disclosures.", sources: [{ title: "SEC EDGAR Filings", domain: "sec.gov" }] },
    ],
    transcript: [
      { t: "0:00", text: "Listen up, this is the call of the year." },
      { t: "0:05", text: "Bitcoin is guaranteed to double by July. I'm telling you, this is happening." },
      { t: "0:14", text: "Every single halving cycle has been followed by a 4x run-up — every single one." },
      { t: "0:25", text: "And major institutions are about to allocate five percent of treasury reserves to crypto." },
      { t: "0:38", text: "If you're not in by next week, you're missing the trade of the decade." },
    ],
  },

  "history-fact": {
    id: "history-fact", url: "https://youtube.com/shorts/Sjkdf...", platform: "YouTube",
    creator: "Quick History", title: "The actual reason the Roman Empire fell",
    duration: "0:58", date: "Apr 26, 2026", score: 88, headline: "Well-supported",
    summary: "A short history explainer. Most claims align with mainstream scholarship; one is a contested simplification.",
    counts: { accurate: 3, mostly: 1, misleading: 0, false: 0, unverified: 0 },
    claims: [],
    transcript: [],
  },
};

const STEPS = [
  { id: 1, name: "Fetching video" },
  { id: 2, name: "Reading metadata" },
  { id: 3, name: "Extracting transcript" },
  { id: 4, name: "Detecting claims" },
  { id: 5, name: "Checking trusted sources" },
  { id: 6, name: "Calculating credibility score" },
  { id: 7, name: "Building report" },
];

window.SAMPLE_REPORTS = SAMPLE_REPORTS;
window.STEPS = STEPS;
