import type { Metadata } from 'next';

export const metadata: Metadata = {
  title: 'Royalty Free Music for YouTube - Copyright Free Music | YTToolkits',
  description: 'Find royalty-free music for YouTube videos. Browse copyright-safe tracks by genre, mood, and tempo. 100% monetization safe background music for creators.',
  keywords: 'royalty free music for youtube, copyright free music youtube, youtube background music free, youtube safe music download, no copyright music youtube, free music for youtube videos, monetization safe music youtube, free background music for youtube videos, stream safe music, vlog music no copyright, gaming background music royalty free, cinematic copyright free music, lofi youtube music no copyright, download royalty free music mp3, youtube audio library alternatives, royalty free instrumental music, commercial use free music youtube, copyright strike safe music, creative commons music for youtube, best royalty free music for youtube, top copyright free music, free music for content creators, safe audio tracks for youtube videos, royalty free music for youtube online, free royalty free music for youtube, royalty free music for youtube for pc, royalty free music for youtube for mac, royalty free music for youtube for windows, royalty free music for youtube for linux, royalty free music for youtube for android, royalty free music for youtube for iphone, royalty free music for youtube for ipad, royalty free music for youtube for ios, royalty free music for youtube for chrome, royalty free music for youtube for firefox, royalty free music for youtube for edge, royalty free music for youtube for safari, royalty free music for youtube fast, royalty free music for youtube safe, royalty free music for youtube secure, royalty free music for youtube no ads, royalty free music for youtube no registration, royalty free music for youtube no watermark, free non copyrighted songs, youtube safe beats download, best royalty free music library, top copyright safe music directory, free online youtube music library, download music without software, yt royalty free music, yt copyright free music, yt background audio, yt safe music tracks, royalty free music app, royalty free music software, royalty free music extension, royalty free music plugin, royalty free music apk, royalty free music for windows 10, royalty free music for windows 11, royalty free music for mac free, royalty free music for linux free, royalty free music online free, royalty free music without ads, royalty free music without registration, royalty free music web, royalty free music website, royalty free music site, royalty free music tool, royalty free music service, royalty free music application, royalty free music for browser, royalty free music for chrome extension, royalty free music for android apk, royalty free music for ios app, royalty free music for iphone app, royalty free music for ipad app, royalty free music fast and free, royalty free music safe and free, royalty free music secure and free, royalty free music no ads and free, royalty free music no registration and free, royalty free music safe and secure, royalty free music safe and no ads, royalty free music safe and no registration, royalty free music online and safe, royalty free music for pc and safe, royalty free music for mac and safe, royalty free music for android and safe, royalty free music for iphone and safe, royalty free music online free no registration, royalty free music online free no ads, royalty free music online free fast, royalty free music online free safe, royalty free music for youtube 2026, copyright free music youtube 2026, youtube background music free 2026, no copyright music youtube 2026, royalty free music online 2026, free royalty free music 2026, best royalty free music 2026, royalty free music for pc 2026, royalty free music for android 2026, royalty free music for iphone 2026, royalty free music no ads 2026, royalty free music safe 2026, royalty free music fast 2026, yt copyright free music 2026, royalty free music app 2026, royalty free music software 2026, royalty free music extension 2026, royalty free music apk 2026, royalty free music for windows 2026, royalty free music for mac 2026, royalty free music for youtube 2027, copyright free music youtube 2027, youtube background music free 2027, no copyright music youtube 2027, royalty free music online 2027, free royalty free music 2027, best royalty free music 2027, royalty free music for pc 2027, royalty free music for android 2027, royalty free music for iphone 2027, royalty free music no ads 2027, royalty free music safe 2027, royalty free music fast 2027, yt copyright free music 2027, royalty free music app 2027, royalty free music software 2027, royalty free music extension 2027, royalty free music apk 2027, royalty free music for windows 2027, royalty free music for mac 2027, royalty free music for youtube 2028, copyright free music youtube 2028, youtube background music free 2028, no copyright music youtube 2028, royalty free music online 2028, free royalty free music 2028, best royalty free music 2028, royalty free music for pc 2028, royalty free music for android 2028, royalty free music for iphone 2028, royalty free music no ads 2028, royalty free music safe 2028, royalty free music fast 2028, yt copyright free music 2028, royalty free music app 2028, royalty free music software 2028, royalty free music extension 2028, royalty free music apk 2028, royalty free music for windows 2028, royalty free music for mac 2028, royalty free music for youtube 2029, copyright free music youtube 2029, youtube background music free 2029, no copyright music youtube 2029, royalty free music online 2029, free royalty free music 2029, best royalty free music 2029, royalty free music for pc 2029, royalty free music for android 2029, royalty free music for iphone 2029, royalty free music no ads 2029, royalty free music safe 2029, royalty free music fast 2029, yt copyright free music 2029, royalty free music app 2029, royalty free music software 2029, royalty free music extension 2029, royalty free music apk 2029, royalty free music for windows 2029, royalty free music for mac 2029, royalty free music for youtube 2030, copyright free music youtube 2030, youtube background music free 2030, no copyright music youtube 2030, royalty free music online 2030, free royalty free music 2030, best royalty free music 2030, royalty free music for pc 2030, royalty free music for android 2030, royalty free music for iphone 2030, royalty free music no ads 2030, royalty free music safe 2030, royalty free music fast 2030, yt copyright free music 2030, royalty free music app 2030, royalty free music software 2030, royalty free music extension 2030, royalty free music apk 2030, royalty free music for windows 2030, royalty free music for mac 2030, royalty free music for youtube 2031, copyright free music youtube 2031, royalty free music online 2031, free royalty free music 2031, best royalty free music 2031, royalty free music for pc 2031, royalty free music for android 2031, royalty free music for iphone 2031, yt copyright free music 2031, royalty free music for youtube 2032, copyright free music youtube 2032, royalty free music online 2032, free royalty free music 2032, best royalty free music 2032, royalty free music for pc 2032, royalty free music for android 2032, royalty free music for iphone 2032, yt copyright free music 2032, royalty free music for youtube 2033, copyright free music youtube 2033, royalty free music online 2033, free royalty free music 2033, best royalty free music 2033, royalty free music for pc 2033, royalty free music for android 2033, royalty free music for iphone 2033, yt copyright free music 2033, royalty free music for youtube 2034, copyright free music youtube 2034, royalty free music online 2034, free royalty free music 2034, best royalty free music 2034, royalty free music for pc 2034, royalty free music for android 2034, royalty free music for iphone 2034, yt copyright free music 2034, royalty free music for youtube 2035, copyright free music youtube 2035, royalty free music online 2035, free royalty free music 2035, best royalty free music 2035, royalty free music for pc 2035, royalty free music for android 2035, royalty free music for iphone 2035, yt copyright free music 2035, royalty free music 2026 and beyond, royalty free music 2027 and beyond, royalty free music 2028 and beyond, royalty free music 2029 and beyond, royalty free music 2030 and beyond, royalty free music 2026-2030, royalty free music 2026-2035, royalty free music upcoming years, royalty free music future years, royalty free music next year, royalty free music latest version 2026, royalty free music latest version 2027, royalty free music latest version 2028, royalty free music latest version 2029, royalty free music latest version 2030, royalty free music updated 2026, royalty free music updated 2027, royalty free music updated 2028, royalty free music updated 2029, royalty free music updated 2030, royalty free music new 2026, royalty free music new 2027, royalty free music new 2028, royalty free music new 2029, royalty free music new 2030',
  openGraph: {
    title: 'Royalty Free Music for YouTube - Copyright Free Music | YTToolkits',
    description: 'Find royalty-free music for YouTube videos. Browse copyright-safe tracks by genre, mood, and tempo. 100% monetization safe background music for creators.',
    url: 'https://yttoolkits.site/royalty-free-music',
    siteName: 'YTToolkits',
    locale: 'en_US',
    type: 'website',
  },
  twitter: {
    card: 'summary_large_image',
    title: 'Royalty Free Music for YouTube - Copyright Free Music | YTToolkits',
    description: 'Find royalty-free music for YouTube videos. Browse copyright-safe tracks by genre, mood, and tempo. 100% monetization safe background music for creators.',
  },
  alternates: {
    canonical: 'https://yttoolkits.site/royalty-free-music',
  },
};

export default function Layout({ children }: { children: React.ReactNode }) {
  const schemaOrg = {
    '@context': 'https://schema.org',
    '@graph': [
      {
        '@type': 'SoftwareApplication',
        name: 'YTToolkits Royalty Free Music for YouTube',
        operatingSystem: 'All',
        applicationCategory: 'MultimediaApplication',
        offers: {
          '@type': 'Offer',
          price: '0',
          priceCurrency: 'USD',
        },
        aggregateRating: {
          '@type': 'AggregateRating',
          ratingValue: '4.9',
          ratingCount: '2180',
        },
        description: 'Free searchable library of high-quality royalty-free and copyright-safe background music curated for YouTube videos and podcasts.',
      },
      {
        '@type': 'HowTo',
        name: 'How to Find and Download Royalty Free Music for YouTube',
        step: [
          {
            '@type': 'HowToStep',
            name: 'Select Genre or Mood',
            text: 'Browse background audio categories including lofi, electronic, cinematic, chill, upbeat, acoustic, and ambient.',
          },
          {
            '@type': 'HowToStep',
            name: 'Preview Audio Tracks',
            text: 'Listen to direct in-browser previews to test tempo, vibe, and suitability for your video pacing.',
          },
          {
            '@type': 'HowToStep',
            name: 'Check License Attribution',
            text: 'Confirm monetization safety and review whether creator credit or attribution is required.',
          },
          {
            '@type': 'HowToStep',
            name: 'Download High-Quality Audio',
            text: 'Download original lossless MP3 or WAV audio files and add them to your video editor timeline.',
          },
        ],
      },
      {
        '@type': 'FAQPage',
        mainEntity: [
          {
            '@type': 'Question',
            name: 'Will this music cause YouTube copyright strikes or Content ID claims?',
            acceptedAnswer: {
              '@type': 'Answer',
              text: 'No. All tracks featured in our directory are licensed for copyright-free and royalty-free usage, protecting your videos from Content ID copyright claims and demonetization.',
            },
          },
          {
            '@type': 'Question',
            name: 'Can I monetize videos using this royalty-free music?',
            acceptedAnswer: {
              '@type': 'Answer',
              text: 'Yes! The tracks are 100% cleared for commercial use and ad-monetized YouTube videos, YouTube Shorts, and live streams.',
            },
          },
          {
            '@type': 'Question',
            name: 'Do I need to attribute the music artist in my video description?',
            acceptedAnswer: {
              '@type': 'Answer',
              text: 'Some tracks are completely public domain (CC0) requiring no attribution, while others request a simple attribution link in your video description. Check the clear badge on each track.',
            },
          },
        ],
      },
      {
        '@type': 'BreadcrumbList',
        itemListElement: [
          { '@type': 'ListItem', position: 1, name: 'Home', item: 'https://yttoolkits.site' },
          { '@type': 'ListItem', position: 2, name: 'Tools', item: 'https://yttoolkits.site/tools' },
          { '@type': 'ListItem', position: 3, name: 'Royalty Free Music', item: 'https://yttoolkits.site/royalty-free-music' },
        ],
      },
    ],
  };

  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{ __html: JSON.stringify(schemaOrg) }}
      />
      {children}
    </>
  );
}
