<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:background="#000000"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <WebView
        android:id="@+id/trailer_webview"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>
    <FrameLayout
        android:id="@+id/fullscreen_container"
        android:background="#000000"
        android:visibility="gone"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>
    <FrameLayout
        android:id="@+id/loading_overlay"
        android:background="@android:color/black"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <ImageView
            android:id="@+id/loading_backdrop"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scaleType="centerCrop"
            android:contentDescription="@null"
            android:alpha="0.3"/>
        <View
            android:background="@drawable/bg_trailer_loading_scrim"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>
        <ImageView
            android:layout_gravity="center"
            android:id="@+id/loading_logo"
            android:layout_width="300dp"
            android:layout_height="150dp"
            android:scaleType="fitCenter"
            android:contentDescription="@null"
            android:alpha="0"/>
    </FrameLayout>
    <ProgressBar
        android:layout_gravity="top"
        android:id="@+id/loading_progress"
        android:visibility="gone"
        android:layout_width="match_parent"
        android:layout_height="4dp"
        android:max="100"
        android:indeterminate="false"
        android:progressTint="#dc2626"
        style="?android:attr/progressBarStyleHorizontal"/>
    <FrameLayout
        android:id="@+id/osd_overlay"
        android:visibility="gone"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <View
            android:layout_gravity="bottom"
            android:background="@drawable/bg_osd_bottom_gradient"
            android:layout_width="match_parent"
            android:layout_height="160dp"/>
        <LinearLayout
            android:layout_gravity="bottom"
            android:orientation="vertical"
            android:paddingBottom="32dp"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingHorizontal="48dp">
            <SeekBar
                android:id="@+id/osd_seekbar"
                android:focusable="false"
                android:clickable="false"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:max="1000"
                android:progress="0"
                android:progressTint="#ffffff"
                android:progressBackgroundTint="#66ffffff"
                android:thumbTint="#ffffff"/>
            <LinearLayout
                android:gravity="center_vertical"
                android:orientation="horizontal"
                android:paddingTop="4dp"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">
                <ImageView
                    android:id="@+id/osd_play_pause_icon"
                    android:layout_width="24dp"
                    android:layout_height="24dp"
                    android:src="@drawable/ic_pause"
                    android:tint="#ffffff"
                    android:contentDescription="@null"/>
                <TextView
                    android:textSize="13sp"
                    android:textColor="#ffffff"
                    android:id="@+id/osd_time_current"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="0:00"
                    android:fontFamily="sans-serif-medium"
                    android:paddingStart="12dp"/>
                <TextView
                    android:textSize="13sp"
                    android:textColor="#99ffffff"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text=" / "/>
                <TextView
                    android:textSize="13sp"
                    android:textColor="#99ffffff"
                    android:id="@+id/osd_time_duration"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="0:00"
                    android:fontFamily="sans-serif-medium"/>
            </LinearLayout>
        </LinearLayout>
    </FrameLayout>
</FrameLayout>
