<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol>100</defaultcontrol>
    
    <!-- Theme includes for dynamic colors -->
    <include>theme_includes.xml</include>
    
    <!-- Search window slide transition animations -->
    <animation effect="slide" start="0,720" end="0,0" time="400" 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="400">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>
        <!-- Enhanced 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>
        </control>
        
        <!-- Modern gradient overlay -->
        <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>
        </control>
        
        <!-- Header bar -->
        <control type="image">
            <posx>0</posx>
            <posy>0</posy>
            <width>1280</width>
            <height>80</height>
            <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/Background.png</texture>
            <colordiffuse>CC000000</colordiffuse>
        </control>

        <!-- Enhanced Title -->
        <control type="label">
            <posx>50</posx>
            <posy>20</posy>
            <width>1180</width>
            <height>40</height>
            <font>font30</font>
            <align>center</align>
            <aligny>center</aligny>
            <textcolor>FFFFD700</textcolor>
            <label>[B]Search Results[/B]</label>
        </control>

        <!-- Results List -->
        <control type="list" id="100">
            <posx>50</posx>
            <posy>100</posy>
            <width>1180</width>
            <height>580</height>
            <onup>100</onup>
            <ondown>100</ondown>
            <onleft>103</onleft>
            <onright>100</onright>
            <pagecontrol>101</pagecontrol>
            <scrolltime>200</scrolltime>
            <itemlayout height="60">
                <!-- Subtle background for better readability -->
                <control type="image">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>1180</width>
                    <height>60</height>
                    <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/Background.png</texture>
                    <colordiffuse>20FFFFFF</colordiffuse>
                </control>
                <control type="image">
                    <posx>5</posx>
                    <posy>5</posy>
                    <width>50</width>
                    <height>50</height>
                    <texture>$INFO[ListItem.Icon]</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <posx>70</posx>
                    <posy>0</posy>
                    <width>1100</width>
                    <height>60</height>
                    <font>font13</font>
                    <textcolor>FFFFFFFF</textcolor>
                    <aligny>center</aligny>
                    <label>$INFO[ListItem.Label]</label>
                </control>
            </itemlayout>
            <focusedlayout height="60">
                <!-- Enhanced focus background -->
                <control type="image">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>1180</width>
                    <height>60</height>
                    <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonFocus.png</texture>
                    <colordiffuse>FFFFD700</colordiffuse>
                    <animation effect="fade" start="70" end="100" time="200" condition="Control.HasFocus(100)">Conditional</animation>
                </control>
                <!-- Glowing border effect -->
                <control type="image">
                    <posx>-2</posx>
                    <posy>-2</posy>
                    <width>1184</width>
                    <height>64</height>
                    <texture>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonFocus.png</texture>
                    <colordiffuse>60FFD700</colordiffuse>
                </control>
                <control type="image">
                    <posx>5</posx>
                    <posy>5</posy>
                    <width>50</width>
                    <height>50</height>
                    <texture>$INFO[ListItem.Icon]</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <posx>70</posx>
                    <posy>0</posy>
                    <width>1100</width>
                    <height>60</height>
                    <font>font14</font>
                    <textcolor>FF000000</textcolor>
                    <aligny>center</aligny>
                    <label>[B]$INFO[ListItem.Label][/B]</label>
                </control>
            </focusedlayout>
        </control>

        <!-- Scrollbar -->
        <control type="scrollbar" id="101">
            <posx>1240</posx>
            <posy>100</posy>
            <width>20</width>
            <height>580</height>
            <texturesliderbackground>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texturesliderbackground>
            <texturesliderbar>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texturesliderbar>
            <texturesliderbarfocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/white.png</texturesliderbarfocus>
            <orientation>vertical</orientation>
        </control>

        <!-- Action Buttons at Bottom -->
        <control type="button" id="103">
            <posx>50</posx>
            <posy>690</posy>
            <width>200</width>
            <height>30</height>
            <texturenofocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonSelect.png</texturenofocus>
            <texturefocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonFocus.png</texturefocus>
            <font>font13</font>
            <align>center</align>
            <aligny>center</aligny>
            <textcolor>FF000000</textcolor>
            <label>New Search</label>
            <onup>100</onup>
            <ondown>100</ondown>
            <onleft>106</onleft>
            <onright>104</onright>
        </control>

        <control type="button" id="104">
            <posx>260</posx>
            <posy>690</posy>
            <width>200</width>
            <height>30</height>
            <texturenofocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonSelect.png</texturenofocus>
            <texturefocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonFocus.png</texturefocus>
            <font>font13</font>
            <align>center</align>
            <aligny>center</aligny>
            <textcolor>FF000000</textcolor>
            <label>Filters</label>
            <onup>100</onup>
            <ondown>100</ondown>
            <onleft>103</onleft>
            <onright>102</onright>
        </control>

        <control type="button" id="102">
            <posx>470</posx>
            <posy>690</posy>
            <width>200</width>
            <height>30</height>
            <texturenofocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonSelect.png</texturenofocus>
            <texturefocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonFocus.png</texturefocus>
            <font>font13</font>
            <align>center</align>
            <aligny>center</aligny>
            <textcolor>FF000000</textcolor>
            <label>Save Search</label>
            <onup>100</onup>
            <ondown>100</ondown>
            <onleft>104</onleft>
            <onright>105</onright>
        </control>

        <control type="button" id="105">
            <posx>680</posx>
            <posy>690</posy>
            <width>200</width>
            <height>30</height>
            <texturenofocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonSelect.png</texturenofocus>
            <texturefocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonFocus.png</texturefocus>
            <font>font13</font>
            <align>center</align>
            <aligny>center</aligny>
            <textcolor>FF000000</textcolor>
            <label>Saved Searches</label>
            <onup>100</onup>
            <ondown>100</ondown>
            <onleft>102</onleft>
            <onright>106</onright>
        </control>

        <control type="button" id="106">
            <posx>890</posx>
            <posy>690</posy>
            <width>200</width>
            <height>30</height>
            <texturenofocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonSelect.png</texturenofocus>
            <texturefocus>special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/ButtonFocus.png</texturefocus>
            <font>font13</font>
            <align>center</align>
            <aligny>center</aligny>
            <textcolor>FF000000</textcolor>
            <label>Search History</label>
            <onup>100</onup>
            <ondown>100</ondown>
            <onleft>105</onleft>
            <onright>103</onright>
        </control>
    </controls>
</window>