<window id="5114">
    <defaultcontrol>5002</defaultcontrol>
    <allowoverlay>yes</allowoverlay>
    <onload>RunScript(plugin.video.filteredmovies,mode=get_total_count)</onload>
    <controls>
        <!-- Fallback background for non-standard skins -->
        <control type="image">
            <left>0</left>
            <top>0</top>
            <width>100%</width>
            <height>100%</height>
            <texture colordiffuse="FF202020">colors/fm_white.png</texture>
        </control>
        <!-- 背景，沿用 estuary 的默认 -->
        <include>ColoredBackgroundImages</include>
        <!-- 下方海报墙 -->
        <control type="panel" id="9999">
            <left>30</left>
            <top>50</top>
            <width>2000</width>
            <height>1050</height>
            <animation type="Conditional" condition="Control.HasFocus(9999) + Integer.IsGreater(Container(9999).CurrentItem,6)" reversible="true">
                <effect type="slide" end="0,-380" time="500" tween="cubic" easing="inout" />
            </animation>
            <animation type="Conditional" condition="String.IsEqual(Window(Home).Property(MFG.IsRefreshing),true)" reversible="true">
                <effect type="fade" start="100" end="0" time="100" />
            </animation>
            <onup>9998</onup>
            <wraparound>true</wraparound>
            <onclick condition="String.IsEqual(ListItem.DBType,tvshow)">ActivateWindow(videos,videodb://tvshows/titles/$INFO[ListItem.DBID]/,return)</onclick>
            <onclick condition="String.IsEqual(ListItem.DBType,set)">ActivateWindow(videos,videodb://movies/sets/$INFO[ListItem.DBID]/,return)</onclick>
            <onclick condition="String.IsEqual(ListItem.DBType,movie)">Action(Info)</onclick>
            <content>plugin://plugin.video.filteredmovies/?mode=filter_list&amp;reload=$INFO[Window(Home).Property(MFG.ReloadID)]</content>
            <viewtype label="Posters">panel</viewtype>
            <animation type="Conditional" condition="Window.IsVisible(movieinformation) | Window.IsVisible(DialogVideoInfo.xml)" reversible="true">
                <effect type="fade" start="100" end="0" time="200" />
            </animation>
            <scrolltime>200</scrolltime>
            <!-- 每个格子的高度拉高一点，给标题留空间 -->
            <itemlayout width="310" height="511">
                <control type="group">
                    <width>310</width>
                    <height>511</height>
                    <!-- Fuse 2 Version (Rounded) -->
                    <control type="image">
                        <visible>String.IsEqual(Window(Home).Property(MFG.UseRounded),true)</visible>
                        <left>10</left>
                        <top>0</top>
                        <width>290</width>
                        <height>435</height>
                        <texture diffuse="diffuse/poster_mask_round.png">$INFO[ListItem.Art(thumb)]</texture>
                        <aspectratio scalediffuse="false">scale</aspectratio>
                        <bordertexture border="21" infill="false">overlays/fm_rounded_shadow.png</bordertexture>
                        <bordersize>20</bordersize>
                    </control>
                    <!-- Default Version (Square) -->
                    <control type="image">
                        <visible>!String.IsEqual(Window(Home).Property(MFG.UseRounded),true)</visible>
                        <left>10</left>
                        <top>0</top>
                        <width>290</width>
                        <height>435</height>
                        <texture fallback="DefaultVideoCover.png">$INFO[ListItem.Art(thumb)]</texture>
                        <aspectratio>scale</aspectratio>
                        <bordertexture border="21" infill="false">overlays/fm_shadow.png</bordertexture>
                        <bordersize>20</bordersize>
                    </control>
                    <!-- 观看进度条 (Fuse 2 Version) -->
                    <control type="progress">
                        <visible>String.IsEqual(Window(Home).Property(MFG.UseRounded),true) + Integer.IsGreater(ListItem.Property(SkinPercentPlayed),0)</visible>
                        <left>40</left>
                        <top>405</top>
                        <width>230</width>
                        <height>5</height>
                        <info>ListItem.Property(SkinPercentPlayed)</info>
                        <texturebg colordiffuse="20FFFFFF">colors/fm_white.png</texturebg>
                        <lefttexture></lefttexture>
                        <midtexture colordiffuse="$INFO[Window(Home).Property(MFG.ProgressBarColor)]">colors/fm_white.png</midtexture>
                        <righttexture></righttexture>
                    </control>
                    <!-- 观看进度条 (Default Version) -->
                    <control type="progress">
                        <visible>!String.IsEqual(Window(Home).Property(MFG.UseRounded),true) + Integer.IsGreater(ListItem.Property(SkinPercentPlayed),0)</visible>
                        <left>30</left>
                        <top>410</top>
                        <width>250</width>
                        <height>5</height>
                        <info>ListItem.Property(SkinPercentPlayed)</info>
                        <texturebg colordiffuse="20FFFFFF">colors/fm_white.png</texturebg>
                        <lefttexture></lefttexture>
                        <midtexture colordiffuse="$INFO[Window(Home).Property(MFG.ProgressBarColor)]">colors/fm_white.png</midtexture>
                        <righttexture></righttexture>
                    </control>
                    <control type="label">
                        <left>0</left>
                        <top>456</top>
                        <width>310</width>
                        <height>30</height>
                        <align>center</align>
                        <aligny>center</aligny>
                        <font>font10</font>
                        <textcolor>FFCCCCCC</textcolor>
                        <label>$INFO[ListItem.Year]</label>
                        <visible>!String.IsEmpty(ListItem.Year)</visible>
                    </control>
                    <!-- Watched Icon -->
                    <control type="image">
                        <left>208</left>
                        <top>378</top>
                        <width>26</width>
                        <height>26</height>
                        <texture>common/rounded_watched.png</texture>
                        <visible>String.IsEqual(Window(Home).Property(MFG.UseRounded),true) + Integer.IsGreater(ListItem.PlayCount,0) + !Integer.IsGreater(ListItem.Property(SkinPercentPlayed),0)</visible>
                    </control>
                    <control type="image">
                        <left>206</left>
                        <top>376</top>
                        <width>30</width>
                        <height>30</height>
                        <texture>common/watched.png</texture>
                        <visible>!String.IsEqual(Window(Home).Property(MFG.UseRounded),true) + Integer.IsGreater(ListItem.PlayCount,0) + !Integer.IsGreater(ListItem.Property(SkinPercentPlayed),0)</visible>
                    </control>

                    <!-- Rating -->
                    <control type="label">
                        <left>13</left>
                        <top>370</top>
                        <width>260</width>
                        <height>40</height>
                        <align>right</align>
                        <aligny>center</aligny>
                        <font>font12</font>
                        <label>$INFO[ListItem.Rating]</label>
                        <textcolor>FFFFFFFF</textcolor>
                        <visible>!String.IsEmpty(ListItem.Rating)</visible>
                    </control>
                    <control type="label">
                        <top>415</top>
                        <width>310</width>
                        <height>40</height>
                        <align>center</align>
                        <aligny>top</aligny>
                        <wrapmultiline>true</wrapmultiline>
                        <scroll>false</scroll>
                        <label>$INFO[ListItem.Label]</label>
                        <textcolor>FFFFFFFF</textcolor>
                        <font>font13</font>
                    </control>

                    <!-- Media Type Icon: Movie -->
                    <control type="image">
                        <left>30</left>
                        <top>372</top>
                        <width>40</width>
                        <height>40</height>
                        <texture>common/film.png</texture>
                        <animation type="Visible" reversible="false">
                            <effect type="fade" start="0" end="100" time="0" delay="100" />
                        </animation>
                        <animation type="Hidden" reversible="false">
                            <effect type="fade" start="100" end="0" time="0" delay="100" />
                        </animation>
                        <visible>[String.IsEqual(Window(Home).Property(MFG.FilterColor.6001),FFEB9E17) | String.IsEqual(Window(Home).Property(MFG.FilterColor.6006),FFEB9E17)] + [String.IsEqual(ListItem.DBType,movie) | String.IsEqual(ListItem.DBType,set)]</visible>
                    </control>
                    <!-- Media Type Icon: TVShow -->
                    <control type="image">
                        <left>30</left>
                        <top>372</top>
                        <width>40</width>
                        <height>40</height>
                        <texture>common/tv.png</texture>
                        <animation type="Visible" reversible="false">
                            <effect type="fade" start="0" end="100" time="0" delay="100" />
                        </animation>
                        <animation type="Hidden" reversible="false">
                            <effect type="fade" start="100" end="0" time="0" delay="100" />
                        </animation>
                        <visible>[String.IsEqual(Window(Home).Property(MFG.FilterColor.6001),FFEB9E17) | String.IsEqual(Window(Home).Property(MFG.FilterColor.6006),FFEB9E17)] + [String.IsEqual(ListItem.DBType,tvshow) | String.IsEqual(ListItem.DBType,season) | String.IsEqual(ListItem.DBType,episode)]</visible>
                    </control>

                </control>
            </itemlayout>
            <focusedlayout width="310" height="511">
                <control type="group">
                    <depth>DepthContentPopout</depth>
                    <width>310</width>
                    <height>511</height>
                    <animation type="Focus">
                        <effect type="zoom" start="100" end="110" time="200" tween="sine" easing="inout" center="auto" />
                    </animation>
                    <animation type="Unfocus">
                        <effect type="zoom" start="110" end="100" time="200" tween="sine" easing="inout" center="auto" />
                    </animation>
                    <control type="group">
                        <!-- Fuse 2 Version (Rounded) -->
                        <control type="group">
                            <visible>String.IsEqual(Window(Home).Property(MFG.UseRounded),true)</visible>
                            <!-- 选中框：比海报略大的圆角色块 -->
                            <control type="image">
                                <animation type="Unfocus">
                                    <effect type="fade" start="100" end="0" time="0" />
                                </animation>
                                <left>6</left>
                                <top>-4</top>
                                <width>298</width>
                                <height>443</height>
                                <texture diffuse="diffuse/poster_mask_round.png" colordiffuse="$INFO[Window(Home).Property(MFG.FocusColor)]">colors/fm_white.png</texture>
                                <bordertexture border="21" infill="false">overlays/fm_rounded_shadow.png</bordertexture>
                                <bordersize>20</bordersize>
                            </control>
                            <control type="image">
                                <left>10</left>
                                <top>0</top>
                                <width>290</width>
                                <height>435</height>
                                <texture diffuse="diffuse/poster_mask_round.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <bordertexture border="21" infill="false">overlays/fm_rounded_shadow.png</bordertexture>
                                <bordersize>20</bordersize>
                            </control>
                        </control>
                        <!-- Default Version (Square) -->
                        <control type="group">
                            <visible>!String.IsEqual(Window(Home).Property(MFG.UseRounded),true)</visible>
                            <control type="image">
                                <animation type="Unfocus">
                                    <effect type="fade" start="100" end="0" time="0" />
                                </animation>
                                <left>6</left>
                                <top>-4</top>
                                <width>298</width>
                                <height>443</height>
                                <texture colordiffuse="$INFO[Window(Home).Property(MFG.FocusColor)]">colors/fm_white.png</texture>
                                <bordertexture border="21" infill="false">overlays/fm_shadow.png</bordertexture>
                                <bordersize>20</bordersize>
                            </control>
                            <control type="image">
                                <left>10</left>
                                <top>0</top>
                                <width>290</width>
                                <height>435</height>
                                <texture fallback="DefaultVideoCover.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio>scale</aspectratio>
                                <bordertexture border="21" infill="false">overlays/fm_shadow.png</bordertexture>
                                <bordersize>20</bordersize>
                            </control>
                        </control>
                    </control>
                    <!-- 观看进度条 (Fuse 2 Version) -->
                    <control type="progress">
                        <visible>String.IsEqual(Window(Home).Property(MFG.UseRounded),true) + Integer.IsGreater(ListItem.Property(SkinPercentPlayed),0)</visible>
                        <left>40</left>
                        <top>405</top>
                        <width>230</width>
                        <height>5</height>
                        <info>ListItem.Property(SkinPercentPlayed)</info>
                        <texturebg colordiffuse="20FFFFFF">colors/fm_white.png</texturebg>
                        <lefttexture></lefttexture>
                        <midtexture colordiffuse="$INFO[Window(Home).Property(MFG.ProgressBarColor)]">colors/fm_white.png</midtexture>
                        <righttexture></righttexture>
                    </control>
                    <!-- 观看进度条 (Default Version) -->
                    <control type="progress">
                        <visible>!String.IsEqual(Window(Home).Property(MFG.UseRounded),true) + Integer.IsGreater(ListItem.Property(SkinPercentPlayed),0)</visible>
                        <left>30</left>
                        <top>410</top>
                        <width>250</width>
                        <height>5</height>
                        <info>ListItem.Property(SkinPercentPlayed)</info>
                        <texturebg colordiffuse="20FFFFFF">colors/fm_white.png</texturebg>
                        <lefttexture></lefttexture>
                        <midtexture colordiffuse="$INFO[Window(Home).Property(MFG.ProgressBarColor)]">colors/fm_white.png</midtexture>
                        <righttexture></righttexture>
                    </control>
                    <control type="label">
                        <left>0</left>
                        <top>456</top>
                        <width>310</width>
                        <height>30</height>
                        <align>center</align>
                        <aligny>center</aligny>
                        <font>font10</font>
                        <textcolor>FFCCCCCC</textcolor>
                        <label>$INFO[ListItem.Year]</label>
                        <visible>!String.IsEmpty(ListItem.Year)</visible>
                    </control>
                    <!-- Watched Icon -->
                    <control type="image">
                        <left>208</left>
                        <top>378</top>
                        <width>26</width>
                        <height>26</height>
                        <texture>common/rounded_watched.png</texture>
                        <visible>String.IsEqual(Window(Home).Property(MFG.UseRounded),true) + Integer.IsGreater(ListItem.PlayCount,0) + !Integer.IsGreater(ListItem.Property(SkinPercentPlayed),0)</visible>
                    </control>
                    <control type="image">
                        <left>206</left>
                        <top>376</top>
                        <width>30</width>
                        <height>30</height>
                        <texture>common/watched.png</texture>
                        <visible>!String.IsEqual(Window(Home).Property(MFG.UseRounded),true) + Integer.IsGreater(ListItem.PlayCount,0) + !Integer.IsGreater(ListItem.Property(SkinPercentPlayed),0)</visible>
                    </control>

                    <!-- Rating -->
                    <control type="label">
                        <left>13</left>
                        <top>370</top>
                        <width>260</width>
                        <height>40</height>
                        <align>right</align>
                        <aligny>center</aligny>
                        <font>font12</font>
                        <label>$INFO[ListItem.Rating]</label>
                        <textcolor>FFFFFFFF</textcolor>
                        <visible>!String.IsEmpty(ListItem.Rating)</visible>
                    </control>
                    <control type="label">
                        <top>415</top>
                        <width>310</width>
                        <height>40</height>
                        <align>center</align>
                        <aligny>top</aligny>
                        <wrapmultiline>true</wrapmultiline>
                        <scroll>false</scroll>
                        <label>$INFO[ListItem.Label]</label>
                        <textcolor>FFFFFFFF</textcolor>
                        <font>font13</font>
                    </control>

                    <!-- Media Type Icon: Movie -->
                    <control type="image">
                        <left>30</left>
                        <top>372</top>
                        <width>40</width>
                        <height>40</height>
                        <texture>common/film.png</texture>
                        <animation type="Visible" reversible="false">
                            <effect type="fade" start="0" end="100" time="0" delay="100" />
                        </animation>
                        <animation type="Hidden" reversible="false">
                            <effect type="fade" start="100" end="0" time="0" delay="100" />
                        </animation>
                        <visible>[String.IsEqual(Window(Home).Property(MFG.FilterColor.6001),FFEB9E17) | String.IsEqual(Window(Home).Property(MFG.FilterColor.6006),FFEB9E17)] + [String.IsEqual(ListItem.DBType,movie) | String.IsEqual(ListItem.DBType,set)]</visible>
                    </control>
                    <!-- Media Type Icon: TVShow -->
                    <control type="image">
                        <left>30</left>
                        <top>372</top>
                        <width>40</width>
                        <height>40</height>
                        <texture>common/tv.png</texture>
                        <animation type="Visible" reversible="false">
                            <effect type="fade" start="0" end="100" time="0" delay="100" />
                        </animation>
                        <animation type="Hidden" reversible="false">
                            <effect type="fade" start="100" end="0" time="0" delay="100" />
                        </animation>
                        <visible>[String.IsEqual(Window(Home).Property(MFG.FilterColor.6001),FFEB9E17) | String.IsEqual(Window(Home).Property(MFG.FilterColor.6006),FFEB9E17)] + [String.IsEqual(ListItem.DBType,tvshow) | String.IsEqual(ListItem.DBType,season) | String.IsEqual(ListItem.DBType,episode)]</visible>
                    </control>

                </control>
            </focusedlayout>
        </control>
        <!-- 焦点转发器 -->
        <control type="button" id="9997">
            <left>-1000</left>
            <top>-1000</top>
            <width>1</width>
            <height>1</height>
            <label></label>
            <onfocus>SetFocus(6050,10)</onfocus>
        </control>
        <!-- 隐藏的跳转逻辑按钮 -->
        <control type="button" id="9998">
            <left>-1000</left>
            <top>-1000</top>
            <width>1</width>
            <height>1</height>
            <label></label>
            <onfocus condition="Integer.IsEqual(Container(9999).CurrentItem,1)">SetFocus(9997)</onfocus>
            <onfocus condition="Integer.IsEqual(Container(9999).CurrentItem,2)">SetFocus(5002)</onfocus>
            <onfocus condition="Integer.IsEqual(Container(9999).CurrentItem,3)">SetFocus(5005)</onfocus>
            <onfocus>SetFocus(1005)</onfocus>
        </control>
        <control type="button" id="9000">
            <left>-1000</left>
            <top>-1000</top>
            <width>1</width>
            <height>1</height>
            <label></label>
            <onfocus condition="Integer.IsEqual(Container(6050).CurrentItem,6)">SetFocus($INFO[Window(Home).Property(Return_Key6)])</onfocus>
            <onfocus condition="Integer.IsEqual(Container(6050).CurrentItem,12)">SetFocus($INFO[Window(Home).Property(Return_KeyClr)])</onfocus>
            <onfocus condition="Integer.IsEqual(Container(6050).CurrentItem,3)">SetFocus(1013)</onfocus>
            <onfocus condition="Integer.IsEqual(Container(6050).CurrentItem,9)">SetFocus(3001)</onfocus>
        </control>
    </controls>
</window>
