<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    @if (Route::currentRouteName() == 'hentai.index')
        @if (isset($episode))
            <title>Watch {{ $episode->title }} - {{ $episode->episode }} in 4k, 1080p, UHD, HD for Free - hstream.moe</title>
        @elseif (isset($hentai))
            <title>Watch {{ $hentai->episodes[0]->title }} in 4k, 1080p, UHD, HD for Free - hstream.moe</title>
        @else
            <title>Watch Highest Quality Hentai in 4k, 1080p, UHD, HD for Free - hstream.moe</title>
        @endif
    @else
        <title>Watch Highest Quality Hentai in 4k, 1080p, UHD, HD for Free - hstream.moe</title>
        <meta name="description" content="The best free 4k hentai site you will ever need online! Free 1080p hentai downloads and 4k hentai streams!">
    @endif

    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.bunny.net">
    <link rel="preload" href="https://fonts.bunny.net/figtree/files/figtree-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="https://fonts.bunny.net/figtree/files/figtree-latin-ext-400-normal.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="https://fonts.bunny.net/figtree/files/figtree-latin-600-normal.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="https://fonts.bunny.net/figtree/files/figtree-latin-ext-600-normal.woff2" as="font" type="font/woff2" crossorigin>

    <!-- Styles -->
    @vite(['resources/css/app.css', 'resources/js/app.js', 'resources/js/theme.js'])
    @livewireStyles

    <!-- Icons -->
    <link rel="icon" href="/images/cropped-HS-1-32x32.png" sizes="32x32">
    <link rel="icon" href="/images/cropped-HS-1-192x192.png" sizes="192x192">
    <link rel="apple-touch-icon" href="/images/cropped-HS-1-180x180.png">
    <meta name="msapplication-TileImage" content="/images/cropped-HS-1-270x270.png">

    <!-- Color -->
    <meta name="theme-color" content="#be123c">
    <meta name="msapplication-navbutton-color" content="#be123c">
    <meta name="apple-mobile-web-app-status-bar-style" content="#be123c">

    <!-- OG -->
    @if (isset($episode) || isset($hentai))
        @include('partials.social-preview')
    @endif

    <script>
        document.documentElement.classList.add('dark');
    </script>

    <script>
        var _paq = window._paq = window._paq || [];
        _paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);
        (function() {
            var u = "//hstream.moe/";
            _paq.push(['setTrackerUrl', u + 'app.php']);
            _paq.push(['setSiteId', '1']);
            var d = document,
                g = d.createElement('script'),
                s = d.getElementsByTagName('script')[0];
            g.async = true;
            g.src = u + 'app.js';
            s.parentNode.insertBefore(g, s);
        })();
    </script>
</head>
