How to create custom search page

you dont need extra queries, all you would need is to sort the search results by post type. you can find a way to do so here.
and then, inside your search.php template, you would need to check for the post-types and act accodringly..

while (have_posts()) : the_post();
    $post_type = get_post_field( 'post_type', get_the_ID() );
    if ( $post_type === 'anime' ) :
        //load a template or place your code here
        get_template_part( 'template-parts/content', 'my-super-anime-template' );
        //this example would load /your-theme/template-parts/content-my-super-anime-template.php
    else :
        //or pass a variable
        get_template_part( 'template-parts/content', $post_type );
        //this example would load /your-theme/template-parts/content-post.php
    endif;
endwhile;