<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
    android:focusable="true"
    android:focusableInTouchMode="true"
    android:clipChildren="false"
    android:clipToPadding="false"
    android:layout_width="wrap_content"
    android:layout_height="@dimen/poster_height_portrait"
    android:layout_marginEnd="12dp">
    <androidx.cardview.widget.CardView
        android:id="@+id/poster_card"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:stateListAnimator="@null"
        app:cardBackgroundColor="#33000000"
        app:cardCornerRadius="@dimen/radius_poster"
        app:cardElevation="0dp"
        app:cardUseCompatPadding="false">
        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            <FrameLayout
                android:layout_width="@dimen/poster_width_portrait"
                android:layout_height="match_parent">
                <ImageView
                    android:id="@+id/poster_image"
                    android:background="@drawable/poster_card_background"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:scaleType="centerCrop"
                    android:contentDescription="@null"/>
                <LinearLayout
                    android:gravity="center"
                    android:layout_gravity="start|top"
                    android:orientation="vertical"
                    android:id="@+id/date_badge"
                    android:background="@drawable/calendar_badge_bg"
                    android:paddingTop="4dp"
                    android:paddingBottom="4dp"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_margin="6dp"
                    android:paddingHorizontal="8dp">
                    <TextView
                        android:textSize="10sp"
                        android:textStyle="bold"
                        android:textColor="@android:color/white"
                        android:id="@+id/badge_day"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"/>
                    <TextView
                        android:textSize="18sp"
                        android:textStyle="bold"
                        android:textColor="@android:color/white"
                        android:id="@+id/badge_date"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"/>
                </LinearLayout>
                <TextView
                    android:textSize="11sp"
                    android:textStyle="bold"
                    android:textColor="@android:color/white"
                    android:layout_gravity="end|bottom"
                    android:id="@+id/show_count"
                    android:background="@drawable/calendar_badge_bg"
                    android:visibility="gone"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_margin="6dp"
                    android:paddingHorizontal="6dp"
                    android:paddingVertical="3dp"/>
            </FrameLayout>
            <LinearLayout
                android:orientation="vertical"
                android:id="@+id/episode_panel"
                android:background="#33000000"
                android:paddingTop="10dp"
                android:paddingBottom="8dp"
                android:visibility="gone"
                android:layout_width="260dp"
                android:layout_height="match_parent"
                android:alpha="0"
                android:paddingHorizontal="10dp">
                <TextView
                    android:textSize="13sp"
                    android:textStyle="bold"
                    android:textColor="@android:color/white"
                    android:ellipsize="end"
                    android:id="@+id/panel_date_header"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="6dp"
                    android:maxLines="1"/>
                <ScrollView
                    android:scrollbars="none"
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    android:fadeScrollbars="true">
                    <LinearLayout
                        android:orientation="vertical"
                        android:id="@+id/episode_list"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"/>
                </ScrollView>
            </LinearLayout>
        </LinearLayout>
    </androidx.cardview.widget.CardView>
    <View
        android:id="@+id/focus_overlay"
        android:background="@drawable/poster_focus_glow"
        android:visibility="invisible"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>
</FrameLayout>
