<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol always="true">3000</defaultcontrol>
    <onload>Dialog.Close(fullscreeninfo,true)</onload>
    <onload>Dialog.Close(videoosd,true)</onload>
    
    <controls>
        <control type="group">
            
            <!-- Shadow -->
            <control type="image">
                <height>300</height>
                <top>0</top>
                <texture flipy="true">common/osd-dim.png</texture>
            </control>
            
            <control type="group">
                <left>view_pad</left>
                <right>view_pad</right>
                <top>view_pad</top>
                <height>163</height>
                
                <!-- Episode Preview -->
                <control type="group">
                    <width>290</width>
                    
                    <!-- Thumb -->
                    <control type="group">
                        <control type="image">
                            <texture background="true" diffuse="diffuse/landscape-small-wall.png">$INFO[Window().Property(item.art.thumb)]</texture>
                            <bordertexture border="30" colordiffuse="Shadow">common/shadow-15.png</bordertexture>
                            <aspectratio scalediffuse="true">scale</aspectratio>
                        </control>
                    </control>
                    
                    <!-- Progress Bar -->
                    <control type="progress" id="3014">
                        <height>8</height>
                        <bottom>0</bottom>
                        <left>0</left>
                        <right>0</right>
                    </control>
                </control>
                
                <!-- Labels -->
                <control type="group">
                    <left>330</left>
                    
                    <control type="label">
                        <height>30</height>
                        <font>font_title_small</font>
                        <label>Next Episode in [COLOR $INFO[Window.Property(settings.color)]]$INFO[Player.TimeRemaining,,][/COLOR] seconds...</label>
                        <textcolor>panel_fg_100</textcolor>
                        <visible>!Integer.IsGreater(Player.TimeRemaining,180)</visible>
                    </control>
                    
                    <control type="label">
                        <height>30</height>
                        <font>font_title_small</font>
                        <label>Next Episode...</label>
                        <textcolor>panel_fg_100</textcolor>
                        <visible>Integer.IsGreater(Player.TimeRemaining,180)</visible>
                    </control>
                    
                    <!-- Details -->
                    <control type="grouplist">
                        <top>40</top>
                        <height>40</height>
                        <orientation>horizontal</orientation>
                        <usecontrolcoords>true</usecontrolcoords>
                        <itemgap>0</itemgap>
                        
                        <include content="Object_Info_Line_Label">
                            <param name="label" value="$INFO[Window.Property(item.info.tvshowtitle)]" />
                            <param name="textcolor" value="panel_fg_100" />
                            <param name="divider" value="false" />
                            <param name="fallback" value="N/A" />
                            <param name="visible" value="true" />
                            <param name="id" value="90001" />
                        </include>
                        
                        <!-- Further Items -->
                        <include content="Object_Info_Line_Label">
                            <param name="id" value="90002" />
                            <param name="label" value="$INFO[Window.Property(item.info.season),S,]$INFO[Window.Property(item.info.episode),E,]" />
                            <param name="textcolor" value="panel_fg_100" />
                            <param name="visible" value="true" />
                        </include>
                        
                        <include content="Object_Info_Line_Label">
                            <param name="id" value="90003" />
                            <param name="label" value="$INFO[Window.Property(item.info.title)]" />
                            <param name="textcolor" value="panel_fg_100" />
                            <param name="visible" value="true" />
                        </include>
                        
                        <include content="Object_Info_Line_Label">
                            <param name="id" value="90004" />
                            <param name="label" value="$INFO[Window.Property(item.info.aired)]" />
                            <param name="textcolor" value="panel_fg_100" />
                            <param name="visible" value="true" />
                        </include>
                        
                        <include content="Object_Info_Line_Label">
                            <param name="id" value="90005" />
                            <param name="label" value="$INFO[Window.Property(item.info.rating)]" />
                            <param name="textcolor" value="panel_fg_100" />
                            <param name="visible" value="true" />
                        </include>
                    </control>
                    
                    <control type="button" id="3012">
                        <top>-1000</top>
                        <include>Defs_Hidden_Button</include>
                    </control>
                    
                    <!-- Buttons -->
                    <control type="grouplist" id="3000">
                        <left>-16</left>
                        <bottom>-16</bottom>
                        <height>90</height>
                        <orientation>horizontal</orientation>
                        <itemgap>0</itemgap>
                        
                        <include content="Object_IconicButton">
                            <param name="id" value="3001" />
                            <param name="groupid" value="9011" />
                            <param name="label" value="Watch Now" />
                            <param name="icon" value="special://skin/extras/icons/play3.png" />
                            <param name="visible" value="!Integer.IsGreater(Player.TimeRemaining,180)" />
                            <onclick>SendClick(3012)</onclick>
                        </include>
                        
                        <include content="Object_IconicButton">
                            <param name="id" value="3002" />
                            <param name="groupid" value="9013" />
                            <param name="label" value="Close" />
                            <param name="icon" value="special://skin/extras/icons/disabled.png" />
                            <param name="visible" value="true" />
                        </include>
                    </control>
                </control>
            </control>
        </control>
    </controls>
</window>
