import type { Metadata } from 'next';
import { Inter } from 'next/font/google';
import './globals.css';
import ToastProvider from '@/components/ui/Toast';

const inter = Inter({
  subsets: ['latin'],
  display: 'swap',
  variable: '--font-inter',
  weight: ['300', '400', '500', '600', '700', '800', '900'],
});

export const metadata: Metadata = {
  title: 'Cat Tv — Tu Plataforma de Streaming Premium',
  description:
    'Disfruta de TV en vivo, películas y series en la mejor calidad. Cat Tv, tu entretenimiento sin límites.',
  keywords: ['streaming', 'tv en vivo', 'películas', 'series', 'Cat Tv'],
  authors: [{ name: 'Cat Tv' }],
  icons: {
    icon: '/logo.png',
  },
};

import ThemeInitializer from '@/components/theme/ThemeInitializer';

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="es" className="dark">
      <body className={`${inter.variable} font-sans antialiased`}>
        <ThemeInitializer />
        {children}
        <ToastProvider />
      </body>
    </html>
  );
}
