<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol always="true">3001</defaultcontrol>
    <onload>Dialog.Close(fullscreeninfo,true)</onload>
    <onload>Dialog.Close(videoosd,true)</onload>
    <include>Animation_FadeIn</include>
    <controls>
        <control type="image">
            <height>400</height>
            <texture>common/dim-top-bezier.png</texture>
        </control>
        <control type="group">
            <include>Dimension_UpNext</include>
            <control type="group">
                <left>-42</left>
                <top>-40</top>
                <height>upnext_image_h</height>
                <width>upnext_image_w</width>
                <include>Object_ItemBack</include>
                <control type="image">
                    <texture diffuse="diffuse/landscape_w356_h200.png">$INFO[Window.Property(item.art.thumb)]</texture>
                    <aspectratio scalediffuse="false">scale</aspectratio>
                </control>
                <control type="progress" id="3014">
                    <bottom>0</bottom>
                    <height>8</height>
                </control>
            </control>
            <control type="group">
                <left>upnext_image_w</left>
                <control type="label">
                    <left>-20</left>
                    <aligny>center</aligny>
                    <height>40</height>
                    <label>[COLOR=panel_fg_100]$LOCALIZE[31129][/COLOR] $INFO[Player.TimeRemaining(ss),,][COLOR=panel_fg_100] [LOWERCASE]$LOCALIZE[31130][/LOWERCASE]...[/COLOR]</label>
                    <textcolor>$VAR[ColorHighlight]</textcolor>
                    <font>font_midi_black</font>
                </control>

                <control type="group">
                    <left>-20</left>
                    <top>40</top>
                    <height>40</height>
                    <control type="grouplist">
                        <orientation>horizontal</orientation>
                        <height>80</height>
                        <centertop>50%</centertop>
                        <itemgap>10</itemgap>
                        <control type="label">
                            <width>auto</width>
                            <textcolor>panel_fg_90</textcolor>
                            <label>$INFO[Window.Property(item.info.tvshowtitle)]</label>
                            <visible>!String.ISEmpty(Window.Property(item.info.tvshowtitle))</visible>
                        </control>
                        <include content="Info_Line_Divider">
                            <visible>!String.ISEmpty(Window.Property(item.info.tvshowtitle)) + !String.ISEmpty(Window.Property(item.info.episode))</visible>
                        </include>
                        <control type="label">
                            <width>auto</width>
                            <textcolor>panel_fg_90</textcolor>
                            <label>$INFO[Window.Property(item.info.season),S,]$INFO[Window.Property(item.info.episode),E,]</label>
                            <visible>!String.ISEmpty(Window.Property(item.info.episode))</visible>
                        </control>

                        <include content="Info_Line_Divider">
                            <visible>[!String.ISEmpty(Window.Property(item.info.tvshowtitle)) | !String.ISEmpty(Window.Property(item.info.episode))] + !String.ISEmpty(Window.Property(item.info.title))</visible>
                        </include>
                        <control type="label">
                            <width>auto</width>
                            <textcolor>panel_fg_90</textcolor>
                            <label>$INFO[Window.Property(item.info.title)]</label>
                            <visible>!String.ISEmpty(Window.Property(item.info.title))</visible>
                        </control>
                    </control>
                </control>

                <control type="group">
                    <left>-20</left>
                    <top>80</top>
                    <height>40</height>
                    <itemgap>10</itemgap>
                    <control type="grouplist">
                        <orientation>horizontal</orientation>
                        <height>80</height>
                        <centertop>50%</centertop>
                        <itemgap>10</itemgap>
                        <control type="label">
                            <width>auto</width>
                            <textcolor>panel_fg_90</textcolor>
                            <label>$INFO[Window.Property(item.info.aired)]</label>
                            <visible>!String.ISEmpty(Window.Property(item.info.aired))</visible>
                        </control>
                        <include content="Info_Line_Divider">
                            <visible>!String.ISEmpty(Window.Property(item.info.aired)) + !String.ISEmpty(Window.Property(item.info.rating))</visible>
                        </include>
                        <control type="label">
                            <width>auto</width>
                            <textcolor>panel_fg_90</textcolor>
                            <label>$INFO[Window.Property(item.info.rating)]</label>
                            <visible>!String.ISEmpty(Window.Property(item.info.rating))</visible>
                        </control>
                    </control>
                </control>
            
                <control type="group">
                    <left>-426</left>
                    <top>230</top>
                    <height>70</height>
                    <bottom>0</bottom>
                    <control type="grouplist">
                        <itemgap>-80</itemgap>
                        <orientation>horizontal</orientation>
                        <height>256</height>
                        <centertop>50%</centertop>
                        <include content="DialogInfo_Button">
                            <param name="id">3001</param>
                            <param name="groupid">5012</param>
                            <param name="label">$LOCALIZE[208]</param>
                            <param name="include_hintlabel">true</param>
                        </include>
                        <include content="DialogInfo_Button">
                            <param name="id">3002</param>
                            <param name="groupid">5013</param>
                            <param name="label">$LOCALIZE[222]</param>
                            <param name="include_hintlabel">true</param>
                            <onclick>SetFocus(3013)</onclick>
                            <onclick>Action(Select)</onclick>
                        </include>
                    </control>
                </control>

                <!-- Separate group for icons -->
                <control type="group">
                    <left>-377</left>
                    <top>268</top>
                    <height>70</height>
                    <bottom>0</bottom>
                    <control type="grouplist">
                        <itemgap>40</itemgap>
                        <orientation>horizontal</orientation>
                        <height>256</height>
                        <centertop>50%</centertop>
                        <!-- Define icons matching the buttons' positions -->
                        <control type="image">
                            <texture>special://skin/extras/icons/play2.png</texture>
                            <animation effect="fade" start="100" end="50" time="0" condition="!Control.HasFocus(3001)">Conditional</animation>
                            <width>60</width>
                            <height>60</height>
                        </control>
                        <control type="image">
                            <texture>special://skin/extras/icons/xmark.png</texture>
                            <animation effect="fade" start="100" end="50" time="0" condition="!Control.HasFocus(3002)">Conditional</animation>
                            <width>60</width>
                            <height>60</height>
                        </control>
                    </control>
                </control>

            </control>
        </control>
        <include content="Object_Hidden_Button">
            <param name="id">3013</param>
        </include>
    </controls>
</window>