<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/root">
    <com.google.android.material.appbar.AppBarLayout
        android:id="@+id/app_bar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/transparent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:elevation="0dp">

        <androidx.appcompat.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:minHeight="0dp"
            app:layout_scrollFlags="scroll"
            app:contentInsetStart="0dp"
            app:contentInsetEnd="0dp">
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">
                <androidx.constraintlayout.widget.ConstraintLayout
                    android:layout_width="match_parent"
                    android:layout_height="230dp">

                    <ImageView
                        android:id="@+id/image_thumbnail_background"
                        android:layout_width="match_parent"
                        android:layout_height="0dp"
                        app:layout_constraintLeft_toLeftOf="parent"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintTop_toTopOf="parent"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:srcCompat="@drawable/background_thumbnail_live"
                        android:scaleType="centerCrop" />

                    <ImageView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        app:layout_constraintTop_toTopOf="parent"
                        app:layout_constraintLeft_toLeftOf="parent"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:srcCompat="@drawable/bottom_gradient_dark"
                        android:scaleType="centerCrop" />


                </androidx.constraintlayout.widget.ConstraintLayout>
                <androidx.constraintlayout.widget.ConstraintLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="-220dp"
                    app:layout_constraintBottom_toBottomOf="parent">
                    <ImageView
                        android:id="@+id/image_thumbnail"
                        android:layout_width="108dp"
                        android:layout_height="108dp"
                        app:layout_constraintLeft_toLeftOf="parent"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintTop_toTopOf="parent"
                        android:layout_marginTop="30dp"
                        app:srcCompat="@drawable/background_thumbnail_live"
                        android:scaleType="centerCrop" />

                    <TextView
                        android:id="@+id/text_name"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:fontFamily="@font/inter_medium"
                        android:textColor="@color/white"
                        android:textSize="18dp"
                        tools:text="Playlist name"
                        android:layout_marginTop="10dp"
                        app:layout_constraintTop_toBottomOf="@id/image_thumbnail"
                        app:layout_constraintLeft_toLeftOf="@id/container_buttons"
                        app:layout_constraintRight_toRightOf="parent"
                        app:layout_constraintBottom_toTopOf="@id/text_metadata"/>

                    <TextView
                        android:id="@+id/text_metadata"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:fontFamily="@font/inter_extra_light"
                        android:textColor="#595959"
                        android:textSize="14dp"
                        tools:text="15 tracks - 1h 15 minutes"
                        android:layout_marginBottom="15dp"
                        app:layout_constraintLeft_toLeftOf="@id/container_buttons"
                        app:layout_constraintBottom_toTopOf="@id/container_buttons"
                        app:layout_constraintRight_toRightOf="parent" />



                    <LinearLayout
                        android:id="@+id/container_buttons"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        app:layout_constraintLeft_toLeftOf="parent"
                        app:layout_constraintBottom_toBottomOf="parent"
                        android:gravity="center_horizontal"
                        android:orientation="horizontal">
                        <LinearLayout
                            android:id="@+id/button_play_all"
                            android:layout_width="120dp"
                            android:layout_height="40dp"
                            android:background="@drawable/background_button_primary_round"
                            android:gravity="center"
                            android:layout_marginBottom="10dp"
                            android:orientation="horizontal">

                            <ImageView
                                android:layout_width="14dp"
                                android:layout_height="14dp"
                                android:scaleType="fitCenter"
                                app:srcCompat="@drawable/ic_play_white_nopad"
                                android:layout_marginEnd="10dp"/>

                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:fontFamily="@font/inter_light"
                                android:textColor="@color/white"
                                android:textSize="16dp"
                                android:text="@string/play_all" />
                        </LinearLayout>

                        <LinearLayout
                            android:id="@+id/button_shuffle"
                            android:layout_width="120dp"
                            android:layout_height="40dp"
                            android:background="@drawable/background_button_round"
                            android:gravity="center"
                            android:layout_marginStart="5dp"
                            android:orientation="horizontal">

                            <ImageView
                                android:layout_width="16dp"
                                android:layout_height="16dp"
                                android:scaleType="fitCenter"
                                app:srcCompat="@drawable/ic_shuffle"
                                android:layout_marginEnd="5dp"
                                app:tint="@color/white" />

                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:fontFamily="@font/inter_light"
                                android:textColor="@color/white"
                                android:textSize="16dp"
                                android:text="@string/shuffle" />
                        </LinearLayout>

                    </LinearLayout>

                </androidx.constraintlayout.widget.ConstraintLayout>
                <com.futo.platformplayer.views.SearchView
                    android:id="@+id/search_bar"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="-10dp"
                    android:visibility="gone"
                    app:layout_constraintTop_toBottomOf="@+id/container_buttons"
                    app:layout_constraintLeft_toLeftOf="parent"
                    app:layout_constraintRight_toRightOf="parent"
                    />
            </LinearLayout>
        </androidx.appcompat.widget.Toolbar>
    </com.google.android.material.appbar.AppBarLayout>


</androidx.constraintlayout.widget.ConstraintLayout>