<?xml version="1.0" encoding="UTF-8"?>
<window id="33001">
    <defaultcontrol always="true">110</defaultcontrol>
    <!-- <defaultcontrol>400</defaultcontrol> -->
    <allowoverlay>no</allowoverlay>
    <depth>2</depth>
    <zorder>2</zorder>
    <onload>SetProperty(uEPG.timeCount,3,10000)</onload>
    <onload>SetProperty(uEPG.textColor,0xFFFFFFFF,10000)</onload>
    <onload>SetProperty(uEPG.disabledColor,0xFFFFFFFF,10000)</onload>
    <onload>SetProperty(uEPG.focusedColor,0xFFFFFFFF,10000)</onload>
    <onload>SetProperty(uEPG.shadowColor,0xFF000000,10000)</onload>
    <onload>SetProperty(uEPG.timeColor,0xFF0f85a5,10000)</onload>
    <onload>SetProperty(uEPGGuide,True,10000)</onload>
    <onunload>SetProperty(uEPGGuide,False,10000)</onunload>
    
    <!-- Enhanced slide transition animations -->
    <animation effect="slide" start="0,-720" end="0,0" time="350" tween="cubic" easing="out">WindowOpen</animation>
    <animation effect="slide" start="0,0" end="0,720" time="300" tween="cubic" easing="in">WindowClose</animation>
    <animation effect="fade" start="0" end="100" time="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
    <coordinates>
        <system>1</system>
        <posx>0</posx>
        <posy>0</posy>
    </coordinates>
    <controls>
        <!-- Background -->
        <control type="image">
            <posx>0</posx>
            <posy>0</posy>
            <width>1280</width>
            <height>720</height>
            <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/Background.png</texture>
            <colordiffuse>800000D5</colordiffuse>
            <animation effect="fade" start="100" end="100" condition="True">Conditional</animation>
        
        </control>
        <control type="image">
            <posx>0</posx>
            <posy>0</posy>
            <width>1280</width>
            <height>720</height>
            <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/Background.png</texture>
            <colordiffuse>40000000</colordiffuse>
            <animation effect="fade" start="100" end="100" condition="True">Conditional</animation>
        </control>
        
        <!-- Header bar -->
        <control type="image">
            <posx>0</posx>
            <posy>0</posy>
            <width>1500</width>
            <height>100</height>
            <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/Background.png</texture>
            <colordiffuse>CC000000</colordiffuse>
        </control>
        
        <!-- Category buttons -->
        <control type="list" id="200">
            <left>33</left>
            <top>35</top>
            <width>1180</width>
            <height>40</height>
            <onup>304</onup>
            <ondown>110</ondown>
            <onleft>200</onleft>
            <onright>200</onright>
            <orientation>horizontal</orientation>
            <scrolltime>200</scrolltime>
            <pagecontrol>61</pagecontrol>
            <itemgap>150</itemgap>
            <itemlayout width="300" height="30">
                <control type="label">
                    <left>0</left>
                    <top>0</top>
                    <width>240</width>
                    <height>30</height>
                    <font>font36_title</font>
                    <align>left</align>
                    <aligny>center</aligny>
                    <textcolor>white</textcolor>
                    <label>$INFO[ListItem.Label]</label>
                </control>
            </itemlayout>
            <focusedlayout width="300" height="30">
                <control type="image">
                    <left>0</left>
                    <top>0</top>
                    <width>240</width>
                    <height>30</height>
                    <texture border="5">special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonFocus.png</texture>
                    <visible>true</visible>
                </control>
                <control type="label">
                    <left>0</left>
                    <top>0</top>
                    <width>240</width>
                    <height>30</height>
                    <font>font14</font>
                    <align>left</align>
                    <aligny>center</aligny>
                    <textcolor>yellow</textcolor>
                    <label>$INFO[ListItem.Label]</label>
                    <scroll>true</scroll>
                    <scrollspeed>50</scrollspeed>
                    <scrolltime>200</scrolltime>
                </control>
            </focusedlayout>
        </control>
        <!-- Time shift header -->
        <control type="group">
            <left>220</left>
            <top>60</top>
            <width>2000</width>
            <height>40</height>
            <control type="label">
                <left>150</left>
                <width>450</width>
                <height>40</height>
                <aligny>center</aligny>
                <font>font13</font>
                <textcolor>yellow</textcolor>
                <label>$INFO[Window.Property(time0)]</label>
            </control>
            <control type="label">
                <left>400</left>
                <width>450</width>
                <height>40</height>
                <aligny>center</aligny>
                <font>font13</font>
                <textcolor>yellow</textcolor>
                <label>$INFO[Window.Property(time1)]</label>
            </control>
            <control type="label">
                <left>635</left>
                <width>450</width>
                <height>40</height>
                <aligny>center</aligny>
                <font>font13</font>
                <textcolor>yellow</textcolor>
                <label>$INFO[Window.Property(time2)]</label>
            </control>
            <control type="label">
                <left>890</left>
                <width>450</width>
                <height>40</height>
                <aligny>center</aligny>
                <font>font13</font>
                <textcolor>yellow</textcolor>
                <label>$INFO[Window.Property(time3)]</label>
            </control>
        </control>
        <!-- Fixed list -->
        <control type="fixedlist" id="110">
            <left>50</left>
            <top>100</top>
            <width>2200</width>
            <height>450</height>
            <onleft>200</onleft>
            <onright>110</onright>
            <onup>110</onup>
            <ondown>110</ondown>
            <scrolltime tween="cubic" easing="out">500</scrolltime>
            <movement>4</movement>
            <focusposition>4</focusposition>
            <itemlayout height="80" width="2200">
                <!-- Vertical grid line between channel and guide -->
                <control type="image">
                    <posx>233</posx>
                    <posy>0</posy>
                    <width>2</width>
                    <height>80</height>
                    <colordiffuse>50FFFFFF</colordiffuse>
                    <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
                </control>
                <!-- Horizontal grid line at bottom of row -->
                <control type="image">
                    <posx>0</posx>
                    <posy>78</posy>
                    <width>2200</width>
                    <height>2</height>
                    <colordiffuse>30FFFFFF</colordiffuse>
                    <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
                </control>
                <!-- Grid lines for time slots (only show when new show starts) -->
                <control type="image">
                    <posx>500</posx>
                    <posy>0</posy>
                    <width>2</width>
                    <height>80</height>
                    <colordiffuse>40FFFFFF</colordiffuse>
                    <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
                    <visible>String.IsEqual(ListItem.Property(showGrid0),true)</visible>
                </control>
                <control type="image">
                    <posx>750</posx>
                    <posy>0</posy>
                    <width>2</width>
                    <height>80</height>
                    <colordiffuse>40FFFFFF</colordiffuse>
                    <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
                    <visible>String.IsEqual(ListItem.Property(showGrid1),true)</visible>
                </control>
                <control type="image">
                    <posx>1000</posx>
                    <posy>0</posy>
                    <width>2</width>
                    <height>80</height>
                    <colordiffuse>40FFFFFF</colordiffuse>
                    <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
                    <visible>String.IsEqual(ListItem.Property(showGrid2),true)</visible>
                </control>
                <control type="image">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>235</width>
                    <height>80</height>
                    <texture border="2">special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/Background.png</texture>
                    <colordiffuse>20FFFFFF</colordiffuse>
                </control>
                <control type="image">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>235</width>
                    <height>80</height>
                    <texture border="2">special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonFocus.png</texture>
                    <visible>ListItem.Selected</visible>
                    <colordiffuse>60FFFFFF</colordiffuse>
                </control>
                <control type="label">
                    <posx>5</posx>
                    <posy>0</posy>
                    <width>30</width>
                    <height>80</height>
                    <font>font10</font>
                    <align>left</align>
                    <aligny>center</aligny>
                    <textcolor>FFCCCCCC</textcolor>
                    <label>[B]$INFO[ListItem.Label][/B]</label>
                </control>
                <control type="image">
                    <posx>32</posx>
                    <posy>20</posy>
                    <width>40</width>
                    <height>40</height>
                    <texture>$INFO[ListItem.Icon]</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <posx>80</posx>
                    <posy>0</posy>
                    <width>150</width>
                    <height>80</height>
                    <font>font10</font>
                    <align>left</align>
                    <aligny>center</aligny>
                    <textcolor>FFFFFFFF</textcolor>
                    <label>$INFO[ListItem.Label2]</label>
                </control>
                <control type="label">
                    <left>300</left>
                    <width>200</width>
                    <height>80</height>
                    <aligny>center</aligny>
                    <font>font12</font>
                    <textcolor>white</textcolor>
                    <label>$INFO[ListItem.Property(label0)]</label>
                </control>
                <control type="label">
                    <left>550</left>
                    <width>200</width>
                    <height>80</height>
                    <aligny>center</aligny>
                    <font>font12</font>
                    <textcolor>white</textcolor>
                    <label>$INFO[ListItem.Property(label1)]</label>
                </control>
                <control type="label">
                    <left>800</left>
                    <width>200</width>
                    <height>80</height>
                    <aligny>center</aligny>
                    <font>font12</font>
                    <textcolor>white</textcolor>
                    <label>$INFO[ListItem.Property(label2)]</label>
                </control>
                <control type="label">
                    <left>1050</left>
                    <width>200</width>
                    <height>80</height>
                    <aligny>center</aligny>
                    <font>font12</font>
                    <textcolor>white</textcolor>
                    <label>$INFO[ListItem.Property(label3)]</label>
                </control>
            </itemlayout>
            <focusedlayout height="80" width="2200">
                <!-- Vertical grid line between channel and guide when focused -->
                <control type="image">
                    <posx>233</posx>
                    <posy>0</posy>
                    <width>2</width>
                    <height>80</height>
                    <colordiffuse>70FFFFFF</colordiffuse>
                    <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
                </control>
                <!-- Horizontal grid line at bottom of row when focused -->
                <control type="image">
                    <posx>0</posx>
                    <posy>78</posy>
                    <width>2200</width>
                    <height>2</height>
                    <colordiffuse>50FFFFFF</colordiffuse>
                    <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
                </control>
                <!-- Grid lines for time slots when focused (only show when new show starts) -->
                <control type="image">
                    <posx>500</posx>
                    <posy>0</posy>
                    <width>2</width>
                    <height>80</height>
                    <colordiffuse>60FFFFFF</colordiffuse>
                    <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
                    <visible>String.IsEqual(ListItem.Property(showGrid0),true)</visible>
                </control>
                <control type="image">
                    <posx>750</posx>
                    <posy>0</posy>
                    <width>2</width>
                    <height>80</height>
                    <colordiffuse>60FFFFFF</colordiffuse>
                    <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
                    <visible>String.IsEqual(ListItem.Property(showGrid1),true)</visible>
                </control>
                <control type="image">
                    <posx>1000</posx>
                    <posy>0</posy>
                    <width>2</width>
                    <height>80</height>
                    <colordiffuse>60FFFFFF</colordiffuse>
                    <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texture>
                    <visible>String.IsEqual(ListItem.Property(showGrid2),true)</visible>
                </control>
                <control type="image">
                    <left>0</left>
                    <width>2200</width>
                    <height>60</height>
                    <texture border="2">special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonFocus.png</texture>
                    <visible>Control.HasFocus(110) | ListItem.Selected</visible>
                    <colordiffuse>80FFD700</colordiffuse>

                    <animation effect="fade" start="70" end="100" time="200" condition="Control.HasFocus(110)">Conditional</animation>
                </control>
                <control type="image">
                    <posx>-2</posx>
                    <posy>-2</posy>
                    <width>239</width>
                    <height>64</height>
                    <texture border="2">special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonFocus.png</texture>
                    <visible>Control.HasFocus(110) | StringCompare(Window.Property(SelectedChannel),ListItem.Label)</visible>
                    <colordiffuse>80FFD700</colordiffuse>
                </control>
                <control type="label">
                    <posx>5</posx>
                    <posy>0</posy>
                    <width>30</width>
                    <height>80</height>
                    <font>font10</font>
                    <align>left</align>
                    <aligny>center</aligny>
                    <textcolor>FFCCCCCC</textcolor>
                    <label>[B]$INFO[ListItem.Label][/B]</label>
                </control>
                <control type="image">
                    <posx>32</posx>
                    <posy>20</posy>
                    <width>40</width>
                    <height>40</height>
                    <texture>$INFO[ListItem.Icon]</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <posx>80</posx>
                    <posy>0</posy>
                    <width>150</width>
                    <height>80</height>
                    <font>font14</font>
                    <align>left</align>
                    <aligny>center</aligny>
                    <textcolor>FF000000</textcolor>
                    <label>[B]$INFO[ListItem.Label2][/B]</label>
                </control>
                <control type="label">
                    <left>300</left>
                    <width>200</width>
                    <height>80</height>
                    <aligny>center</aligny>
                    <font>font12</font>
                    <textcolor>white</textcolor>
                    <label>$INFO[ListItem.Property(label0)]</label>
                </control>
                <control type="label">
                    <left>550</left>
                    <width>200</width>
                    <height>80</height>
                    <aligny>center</aligny>
                    <font>font12</font>
                    <textcolor>white</textcolor>
                    <label>$INFO[ListItem.Property(label1)]</label>
                </control>
                <control type="label">
                    <left>800</left>
                    <width>200</width>
                    <height>80</height>
                    <aligny>center</aligny>
                    <font>font12</font>
                    <textcolor>white</textcolor>
                    <label>$INFO[ListItem.Property(label2)]</label>
                </control>
                <control type="label">
                    <left>1050</left>
                    <width>200</width>
                    <height>80</height>
                    <aligny>center</aligny>
                    <font>font12</font>
                    <textcolor>white</textcolor>
                    <label>$INFO[ListItem.Property(label3)]</label>
                </control>
            </focusedlayout>
        </control>
        <!-- Horizontal scroll buttons group -->
        <control type="group" id="399">

            <left>1000</left>
            <top>570</top>
            <width>300</width>
            <height>100</height>
            <control type="button" id="400">
                <left>0</left>
                <top>0</top>
                <width>80</width>
                <height>80</height>
                <!-- <label><</label> -->
                <!-- <font>font16</font> -->
                <!-- <textcolor>white</textcolor> -->
                <focusedcolor>yellow</focusedcolor>
                <align>center</align>
                <aligny>center</aligny>
                <texturefocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/left.png</texturefocus>
                <texturenofocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/left.png</texturenofocus>
                <animation effect="Zoom" start="100,100" end="110,110" time="200" condition="Control.HasFocus(400)">Conditional</animation>
                <animation effect="fade" start="80" end="100" time="200" condition="Control.HasFocus(400)">Conditional</animation>
                <animation effect="slide" start="0,-100" end="0,0" time="600" delay="500" tween="cubic" easing="out">WindowOpen</animation>
                <animation effect="fade" start="0" end="100" time="600" delay="500">WindowOpen</animation>
            </control>
                <control type="button" id="401">
                    <left>100</left>
                    <top>0</top>
                    <width>80</width>
                    <height>80</height>
                    <!-- <label>></label> -->
                    <!-- <font>font16</font> -->
                    <!-- <textcolor>white</textcolor> -->
                    <focusedcolor>yellow</focusedcolor>
                    <align>center</align>
                    <aligny>center</aligny>
                    <texturefocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/right.png</texturefocus>
                    <texturenofocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/right.png</texturenofocus>
                    <animation effect="Zoom" start="100,100" end="110,110" time="200" condition="Control.HasFocus(401)">Conditional</animation>
                <animation effect="fade" start="80" end="100" time="200" condition="Control.HasFocus(401)">Conditional</animation>
                <animation effect="slide" start="0,-100" end="0,0" time="600" delay="500" tween="cubic" easing="out">WindowOpen</animation>
                <animation effect="fade" start="0" end="100" time="600" delay="500">WindowOpen</animation>
                </control>
            </control>
            <!-- Program Image Window -->
        <!-- Program Image Window -->
        <control type="group" id="103">
            <posx>5</posx>
            <posy>560</posy>
            <width>150</width>
            <height>200</height>
            <control type="image">
                <posx>0</posx>
                <posy>0</posy>
                <width>155</width>
                <height>200</height>
                <texture border="5">special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/Background.png</texture>
                <colordiffuse>FFFFD700</colordiffuse>
            </control>
            <control type="image">
                <posx>5</posx>
                <posy>5</posy>
                <width>145</width>
                <height>200</height>
                <texture>$INFO[Window.Property(ProgramIcon)]</texture>
                <aspectratio>keep</aspectratio>
            </control>
        </control>

        <!-- Program Info Window -->
        <control type="group" id="104">
            <posx>160</posx>
            <posy>560</posy>
            <width>600</width>
            <height>250</height>
            <control type="image">
                <posx>0</posx>
                <posy>0</posy>
                <width>600</width>
                <height>250</height>
                <texture border="5">special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/Background.png</texture>
                <colordiffuse>E6000000</colordiffuse>
            </control>
            <control type="label" id="204">
                <posx>20</posx>
                <posy>5</posy>
                <width>580</width>
                <height>30</height>
                <font>font14</font>
                <align>left</align>
                <aligny>center</aligny>
                <textcolor>yellow</textcolor>
                <label>$INFO[Window.Property(ProgramTitle)]</label>
                <scroll>true</scroll>
                    <scrollspeed>50</scrollspeed>
                    <scrolltime>200</scrolltime>
            </control>
            <control type="label" id="205">
                <posx>20</posx>
                <posy>37</posy>
                <width>580</width>
                <height>23</height>
                <font>font12</font>
                <align>left</align>
                <aligny>center</aligny>
                <textcolor>white</textcolor>
                <label>$INFO[Window.Property(ProgramTime)]</label>
            </control>
            <control type="label" id="206">
                <posx>20</posx>
                <posy>61</posy>
                <width>580</width>
                <height>20</height>
                <font>font12</font>
                <align>left</align>
                <aligny>center</aligny>
                <textcolor>white</textcolor>
                <label>$INFO[Window.Property(ProgramChannel)]</label>
            </control>
            <control type="textbox" id="207">
                <posx>20</posx>
                <posy>85</posy>
                <width>580</width>
                <height>80</height>
                <font>font12</font>
                <align>left</align>
                <textcolor>white</textcolor>
                <label>$INFO[Window.Property(ProgramDescription)]</label>
                <autoscroll delay="3000" time="2000" repeat="3000">true</autoscroll>
            </control>
        </control>
    </controls>
</window>