<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog">
    <onload condition="Skin.HasSetting(MilionarDefaultsV1)">SetProperty(milionar.logo.tint,$VAR[MilionarLogoTint],home)</onload>
    <onload condition="!Skin.HasSetting(MilionarDefaultsV1)">SetProperty(milionar.logo.tint,FFFFFFFF,home)</onload>
    <defaultcontrol always="true">50</defaultcontrol>

    <controls>
        <!-- Ztmavení pozadí za dialogem -->
        <control type="image" id="900">
            <left>0</left>
            <top>0</top>
            <width>1920</width>
            <height>1080</height>
            <texture colordiffuse="A6000000">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
            <animation effect="fade" start="0" end="100" time="300">WindowOpen</animation>
            <animation effect="fade" start="100" end="0" time="250">WindowClose</animation>
        </control>

        <!-- LEVÁ KARTA: informace o obsahu -->
        <control type="group">
            <left>87</left>
            <top>161</top>
            <width>861</width>
            <height>756</height>
            <animation effect="fade" start="0" end="100" time="300" delay="100">WindowOpen</animation>
            <animation effect="fade" start="100" end="0" time="200">WindowClose</animation>

            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>861</width>
                <height>756</height>
                <texture border="30" colordiffuse="EC27272B">special://home/addons/plugin.video.milionar/resources/media/search_card_fill.png</texture>
            </control>
            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>861</width>
                <height>756</height>
                <texture border="30" colordiffuse="FF57575E">special://home/addons/plugin.video.milionar/resources/media/search_card_stroke.png</texture>
            </control>

            <!-- Poster: zaoblení 28 px jako tlačítka. scalediffuse="false" = maska se mapuje na
                 rámeček controlu, ne na zvětšený/oříznutý obrázek (jinak Kodi ořízne rohy masky). -->
            <control type="image">
                <left>42</left>
                <top>92</top>
                <width>235</width>
                <height>363</height>
                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/search_poster_mask.png">$INFO[Window.Property(WCS.Search.Poster)]</texture>
                <aspectratio scalediffuse="false">scale</aspectratio>
                <visible>!String.Contains(Window.Property(WCS.Search.Poster),/brand/milionar-mark.png)</visible>
            </control>
            <control type="image">
                <left>42</left><top>92</top><width>235</width><height>363</height>
                <texture colordiffuse="$INFO[Window(Home).Property(milionar.logo.tint)]">$INFO[Window.Property(WCS.Search.Poster)]</texture>
                <aspectratio>keep</aspectratio>
                <visible>String.Contains(Window.Property(WCS.Search.Poster),/brand/milionar-mark.png)</visible>
            </control>
            <control type="image">
                <left>42</left>
                <top>92</top>
                <width>235</width>
                <height>363</height>
                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/search_poster_mask.png" colordiffuse="12FFFFFF">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                <visible>String.IsEmpty(Window.Property(WCS.Search.Poster))</visible>
            </control>
            <control type="image">
                <left>42</left>
                <top>92</top>
                <width>235</width>
                <height>363</height>
                <texture border="29" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_button_stroke.png</texture>
            </control>

            <!-- Info sloupec: logo nebo název, podtitul, meta, děj pod sebou.
                 Kodi skládá výšky (textbox height auto), Python (SearchDialog._layout_info_column)
                 zkracuje texty na celé řádky, nastavuje výšku loga a děje. -->
            <control type="grouplist" id="119">
                <left>318</left>
                <top>80</top>
                <width>501</width>
                <height>498</height>
                <orientation>vertical</orientation>
                <itemgap>0</itemgap>
                <usecontrolcoords>false</usecontrolcoords>
                <!-- Logo: horní hrana na úrovni plakátu (grouplist začíná o 12 px výš kvůli písmu) -->
                <control type="image">
                    <width>501</width>
                    <height>12</height>
                    <visible>!String.IsEmpty(Window.Property(WCS.Search.Logo))</visible>
                </control>
                <control type="image" id="120">
                    <width>501</width>
                    <height>120</height>
                    <aspectratio align="left" aligny="top">keep</aspectratio>
                    <texture>$INFO[Window.Property(WCS.Search.Logo)]</texture>
                    <visible>!String.IsEmpty(Window.Property(WCS.Search.Logo))</visible>
                </control>
                <control type="textbox" id="121">
                    <width>501</width>
                    <height>auto</height>
                    <font>font45_title</font>
                    <textcolor>FFFBFBFD</textcolor>
                    <label>$INFO[Window.Property(WCS.Search.MovieTitle)]</label>
                    <visible>String.IsEmpty(Window.Property(WCS.Search.Logo))</visible>
                </control>
                <control type="image">
                    <width>501</width>
                    <height>18</height>
                </control>
                <!-- SxxExx · název epizody / rok (max 2 řádky) -->
                <control type="textbox" id="122">
                    <width>501</width>
                    <height>auto</height>
                    <font>font32</font>
                    <textcolor>FFB7B8BE</textcolor>
                    <label>$INFO[Window.Property(WCS.Search.InfoSubtitle)]</label>
                    <visible>!String.IsEmpty(Window.Property(WCS.Search.InfoSubtitle))</visible>
                </control>
                <control type="image">
                    <width>501</width>
                    <height>8</height>
                    <visible>!String.IsEmpty(Window.Property(WCS.Search.InfoSubtitle))</visible>
                </control>
                <!-- Rok, žánr, délka, hodnocení -->
                <control type="label" id="123">
                    <width>501</width>
                    <height>40</height>
                    <font>font27</font>
                    <textcolor>FFB7B8BE</textcolor>
                    <label>$INFO[Window.Property(WCS.Search.MetaLine)]</label>
                    <aligny>center</aligny>
                </control>
                <control type="image">
                    <width>501</width>
                    <height>26</height>
                    <visible>String.IsEqual(Window.Property(WCS.Search.ShowPlot),true)</visible>
                </control>
                <!-- Děj: výška = celé řádky, které se vejdou nad tlačítka -->
                <control type="textbox" id="124">
                    <width>501</width>
                    <height>150</height>
                    <font>font27</font>
                    <textcolor>FFA8A8B0</textcolor>
                    <label>$INFO[Window.Property(WCS.Search.Plot)]</label>
                    <visible>String.IsEqual(Window.Property(WCS.Search.ShowPlot),true)</visible>
                </control>
            </control>

            <!-- Akční tlačítka podle vzoru: zaoblené obdélníky (radius 20 (2/3 poloměru karty 30, stejně jako řádky streamů), odsazení 32 px vlevo/vpravo/dole, mezery 20 px), zavřít je kruh.
                 Ikony Info a hry jsou originální Kodi (DefaultIconInfo.png, DefaultAddonGame.png ze skinu), žádné vlastní.
                 Klidový stav tmavý s jemným rámečkem, fokus bílá výplň s tmavým obsahem. -->
            <control type="button" id="110">
                <left>32</left>
                <top>628</top>
                <width>266</width>
                <height>96</height>
                <font>font32</font>
                <textcolor>00FFFFFF</textcolor>
                <focusedcolor>00FFFFFF</focusedcolor>
                <label></label>
                <texturefocus border="21" colordiffuse="FFFFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_card_button_fill.png</texturefocus>
                <texturenofocus border="21" colordiffuse="0FFFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_card_button_fill.png</texturenofocus>
                <onleft>noop</onleft>
                <onright>111</onright>
                <onup>50</onup>
                <ondown>noop</ondown>
            </control>
            <control type="image">
                <left>32</left>
                <top>628</top>
                <width>266</width>
                <height>96</height>
                <texture border="21" colordiffuse="38FFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_card_button_stroke.png</texture>
                <visible>!Control.HasFocus(110)</visible>
            </control>
            <control type="image">
                <left>105</left>
                <top>651</top>
                <width>48</width>
                <height>48</height>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="FFECECF1">DefaultIconInfo.png</texture>
                <visible>!Control.HasFocus(110)</visible>
            </control>
            <control type="image">
                <left>105</left>
                <top>651</top>
                <width>48</width>
                <height>48</height>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="FF101014">DefaultIconInfo.png</texture>
                <visible>Control.HasFocus(110)</visible>
            </control>
            <control type="label">
                <left>173</left>
                <top>653</top>
                <width>120</width>
                <height>44</height>
                <font>font27</font>
                <textcolor>FFECECF1</textcolor>
                <label>$ADDON[plugin.video.milionar 32142]</label>
                <align>left</align>
                <aligny>center</aligny>
                <visible>!Control.HasFocus(110)</visible>
            </control>
            <control type="label">
                <left>173</left>
                <top>653</top>
                <width>120</width>
                <height>44</height>
                <font>font27</font>
                <textcolor>FF101014</textcolor>
                <label>$ADDON[plugin.video.milionar 32142]</label>
                <align>left</align>
                <aligny>center</aligny>
                <visible>Control.HasFocus(110)</visible>
            </control>
            <control type="button" id="111">
                <left>318</left>
                <top>628</top>
                <width>395</width>
                <height>96</height>
                <font>font32</font>
                <textcolor>00FFFFFF</textcolor>
                <focusedcolor>00FFFFFF</focusedcolor>
                <label></label>
                <texturefocus border="21" colordiffuse="FFFFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_card_button_fill.png</texturefocus>
                <texturenofocus border="21" colordiffuse="0FFFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_card_button_fill.png</texturenofocus>
                <onleft>110</onleft>
                <onright>112</onright>
                <onup>50</onup>
                <ondown>noop</ondown>
            </control>
            <control type="image">
                <left>318</left>
                <top>628</top>
                <width>395</width>
                <height>96</height>
                <texture border="21" colordiffuse="38FFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_card_button_stroke.png</texture>
                <visible>!Control.HasFocus(111)</visible>
            </control>
            <control type="image">
                <left>412</left>
                <top>633</top>
                <width>84</width>
                <height>84</height>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="FFECECF1">DefaultAddonGame.png</texture>
                <visible>!Control.HasFocus(111)</visible>
            </control>
            <control type="image">
                <left>412</left>
                <top>633</top>
                <width>84</width>
                <height>84</height>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="FF101014">DefaultAddonGame.png</texture>
                <visible>Control.HasFocus(111)</visible>
            </control>
            <control type="label">
                <left>500</left>
                <top>653</top>
                <width>200</width>
                <height>44</height>
                <font>font27</font>
                <textcolor>FFECECF1</textcolor>
                <label>$ADDON[plugin.video.milionar 32139]</label>
                <align>left</align>
                <aligny>center</aligny>
                <visible>!Control.HasFocus(111)</visible>
            </control>
            <control type="label">
                <left>500</left>
                <top>653</top>
                <width>200</width>
                <height>44</height>
                <font>font27</font>
                <textcolor>FF101014</textcolor>
                <label>$ADDON[plugin.video.milionar 32139]</label>
                <align>left</align>
                <aligny>center</aligny>
                <visible>Control.HasFocus(111)</visible>
            </control>
            <!-- Zavřít (kruh) -->
            <control type="button" id="112">
                <left>733</left>
                <top>628</top>
                <width>96</width>
                <height>96</height>
                <font>font32</font>
                <textcolor>00FFFFFF</textcolor>
                <focusedcolor>00FFFFFF</focusedcolor>
                <label></label>
                <texturefocus colordiffuse="FFFFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_circle_fill.png</texturefocus>
                <texturenofocus colordiffuse="0FFFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_circle_fill.png</texturenofocus>
                <onleft>111</onleft>
                <onright>50</onright>
                <onup>50</onup>
                <ondown>noop</ondown>
            </control>
            <control type="image">
                <left>733</left>
                <top>628</top>
                <width>96</width>
                <height>96</height>
                <texture colordiffuse="38FFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_circle_stroke.png</texture>
                <visible>!Control.HasFocus(112)</visible>
            </control>
            <control type="image">
                <left>766</left>
                <top>661</top>
                <width>30</width>
                <height>30</height>
                <texture colordiffuse="FFECECF1">special://home/addons/plugin.video.milionar/resources/media/search_icon_close.png</texture>
                <visible>!Control.HasFocus(112)</visible>
            </control>
            <control type="image">
                <left>766</left>
                <top>661</top>
                <width>30</width>
                <height>30</height>
                <texture colordiffuse="FF101014">special://home/addons/plugin.video.milionar/resources/media/search_icon_close.png</texture>
                <visible>Control.HasFocus(112)</visible>
            </control>
        </control>

        <!-- PRAVÁ KARTA: seznam streamů -->
        <control type="group">
            <left>970</left>
            <top>161</top>
            <width>872</width>
            <height>756</height>
            <animation effect="fade" start="0" end="100" time="300" delay="150">WindowOpen</animation>
            <animation effect="fade" start="100" end="0" time="200">WindowClose</animation>

            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>872</width>
                <height>756</height>
                <texture border="30" colordiffuse="EC27272B">special://home/addons/plugin.video.milionar/resources/media/search_card_fill.png</texture>
            </control>
            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>872</width>
                <height>756</height>
                <texture border="30" colordiffuse="FF57575E">special://home/addons/plugin.video.milionar/resources/media/search_card_stroke.png</texture>
            </control>

            <!-- Hlavička: přepínač režimu (přehrát / stáhnout), ikony jsou originální Kodi ze skinu -->
            <!-- Režim přehrát: aktivní = tmavý kruh, neaktivní = obrys, fokus = bílý kruh -->
            <control type="image">
                <left>29</left>
                <top>31</top>
                <width>90</width>
                <height>90</height>
                <texture colordiffuse="FF38393F">special://home/addons/plugin.video.milionar/resources/media/search_circle_fill.png</texture>
                <visible>String.IsEmpty(Window.Property(WCS.Search.Mode)) | String.IsEqual(Window.Property(WCS.Search.Mode),play)</visible>
            </control>
            <control type="image">
                <left>29</left>
                <top>31</top>
                <width>90</width>
                <height>90</height>
                <texture colordiffuse="26FFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_circle_stroke.png</texture>
                <visible>!Control.HasFocus(201)</visible>
            </control>
            <control type="button" id="201">
                <left>29</left>
                <top>31</top>
                <width>90</width>
                <height>90</height>
                <label></label>
                <texturefocus colordiffuse="FFFFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_circle_fill.png</texturefocus>
                <texturenofocus>-</texturenofocus>
                <onleft>112</onleft>
                <onright>202</onright>
                <onup>noop</onup>
                <ondown>50</ondown>
            </control>
            <control type="image">
                <left>29</left>
                <top>31</top>
                <width>90</width>
                <height>90</height>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="FFFFFFFF">osd/fullscreen/buttons/play.png</texture>
                <visible>!Control.HasFocus(201) + String.IsEmpty(Window.Property(WCS.Search.Mode)) | String.IsEqual(Window.Property(WCS.Search.Mode),play)</visible>
            </control>
            <control type="image">
                <left>29</left>
                <top>31</top>
                <width>90</width>
                <height>90</height>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="80FFFFFF">osd/fullscreen/buttons/play.png</texture>
                <visible>!Control.HasFocus(201) + !String.IsEmpty(Window.Property(WCS.Search.Mode)) | String.IsEqual(Window.Property(WCS.Search.Mode),play)</visible>
            </control>
            <control type="image">
                <left>29</left>
                <top>31</top>
                <width>90</width>
                <height>90</height>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="FF101014">osd/fullscreen/buttons/play.png</texture>
                <visible>Control.HasFocus(201)</visible>
            </control>
            <!-- Režim stáhnout: aktivní = tmavý kruh, neaktivní = obrys, fokus = bílý kruh -->
            <control type="image">
                <left>131</left>
                <top>31</top>
                <width>90</width>
                <height>90</height>
                <texture colordiffuse="FF38393F">special://home/addons/plugin.video.milionar/resources/media/search_circle_fill.png</texture>
                <visible>String.IsEqual(Window.Property(WCS.Search.Mode),download)</visible>
            </control>
            <control type="image">
                <left>131</left>
                <top>31</top>
                <width>90</width>
                <height>90</height>
                <texture colordiffuse="26FFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_circle_stroke.png</texture>
                <visible>!Control.HasFocus(202)</visible>
            </control>
            <control type="button" id="202">
                <left>131</left>
                <top>31</top>
                <width>90</width>
                <height>90</height>
                <label></label>
                <texturefocus colordiffuse="FFFFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_circle_fill.png</texturefocus>
                <texturenofocus>-</texturenofocus>
                <onleft>201</onleft>
                <onright>noop</onright>
                <onup>noop</onup>
                <ondown>50</ondown>
            </control>
            <control type="image">
                <left>131</left>
                <top>31</top>
                <width>90</width>
                <height>90</height>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="FFFFFFFF">icons/sidemenu/download.png</texture>
                <visible>!Control.HasFocus(202) + String.IsEqual(Window.Property(WCS.Search.Mode),download)</visible>
            </control>
            <control type="image">
                <left>131</left>
                <top>31</top>
                <width>90</width>
                <height>90</height>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="80FFFFFF">icons/sidemenu/download.png</texture>
                <visible>!Control.HasFocus(202) + !String.IsEqual(Window.Property(WCS.Search.Mode),download)</visible>
            </control>
            <control type="image">
                <left>131</left>
                <top>31</top>
                <width>90</width>
                <height>90</height>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="FF101014">icons/sidemenu/download.png</texture>
                <visible>Control.HasFocus(202)</visible>
            </control>
            <control type="label">
                <left>268</left>
                <top>24</top>
                <width>564</width>
                <height>60</height>
                <font>font37</font>
                <textcolor>FFF7F7F9</textcolor>
                <label>$ADDON[plugin.video.milionar 32143]</label>
                <align>left</align>
                <aligny>center</aligny>
                <visible>!String.IsEqual(Window.Property(WCS.Search.Mode),download)</visible>
            </control>
            <control type="label">
                <left>268</left>
                <top>24</top>
                <width>564</width>
                <height>60</height>
                <font>font37</font>
                <textcolor>FFF7F7F9</textcolor>
                <label>$ADDON[plugin.video.milionar 32144]</label>
                <align>left</align>
                <aligny>center</aligny>
                <visible>String.IsEqual(Window.Property(WCS.Search.Mode),download)</visible>
            </control>
            <control type="label">
                <left>268</left>
                <top>78</top>
                <width>564</width>
                <height>44</height>
                <font>font12</font>
                <textcolor>FFB0B0B8</textcolor>
                <label>$INFO[Window.Property(WCS.Search.Subtitle)]</label>
                <align>left</align>
                <aligny>center</aligny>
            </control>

            <!-- Seznam streamů -->
            <!-- Přesně 5 řádků na stránku: 5 x 121 (řádek 110 + mezera 11); obsah 5. řádku končí na 734 -->
            <control type="panel" id="50">
                <left>29</left>
                <top>140</top>
                <width>816</width>
                <height>605</height>
                <orientation>vertical</orientation>
                <scrolltime>200</scrolltime>
                <pagecontrol>60</pagecontrol>
                <onleft>112</onleft>
                <onright>60</onright>
                <onup condition="String.IsEqual(Window.Property(WCS.Search.Mode),download)">202</onup>
                <onup>201</onup>
                <ondown>110</ondown>
                <itemlayout width="816" height="121">
                    <control type="image">
                        <left>0</left>
                        <top>0</top>
                        <width>816</width>
                        <height>110</height>
                        <texture border="20" colordiffuse="0AFFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_row_fill.png</texture>
                    </control>
                    <control type="image">
                        <left>0</left>
                        <top>0</top>
                        <width>816</width>
                        <height>110</height>
                        <texture border="20" colordiffuse="1AFFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_row_stroke.png</texture>
                    </control>
                    <control type="image">
                        <left>19</left>
                        <top>15</top>
                        <width>80</width>
                        <height>80</height>
                        <texture>special://home/addons/plugin.video.milionar/resources/media/search_badge_w.png</texture>
                        <visible>!String.IsEqual(ListItem.Property(provider),kraska)</visible>
                    </control>
                    <control type="image">
                        <left>19</left>
                        <top>15</top>
                        <width>80</width>
                        <height>80</height>
                        <texture>special://home/addons/plugin.video.milionar/resources/media/search_badge_k.png</texture>
                        <visible>String.IsEqual(ListItem.Property(provider),kraska)</visible>
                    </control>
                    <control type="label">
                        <left>121</left>
                        <top>0</top>
                        <width>580</width>
                        <height>60</height>
                        <font>font10</font>
                        <textcolor>FFF2F2F5</textcolor>
                        <label>$INFO[ListItem.Property(filename)]</label>
                        <align>left</align>
                        <aligny>center</aligny>
                        <wrapmultiline>true</wrapmultiline>
                    </control>
                    <!-- Chipy (kvalita, formát, velikost, jazyk): obrázek na řádek z wcs/ui/chip_strip.py -->
                    <control type="image">
                        <left>119</left>
                        <top>61</top>
                        <width>580</width>
                        <height>33</height>
                        <aspectratio align="left" aligny="center">keep</aspectratio>
                        <texture colordiffuse="FFDADAE0">$INFO[ListItem.Property(chips_image)]</texture>
                    </control>
                    <control type="image">
                        <left>720</left>
                        <top>15</top>
                        <width>80</width>
                        <height>80</height>
                        <texture>special://home/addons/plugin.video.milionar/resources/media/search_play_idle.png</texture>
                        <visible>!String.IsEqual(Window.Property(WCS.Search.Mode),download)</visible>
                    </control>
                    <!-- Režim stahování: pozadí + ikona Kodi; KRA.sk stahovat neumíme -> ztlumeno -->
                    <control type="image">
                        <left>720</left>
                        <top>15</top>
                        <width>80</width>
                        <height>80</height>
                        <texture>special://home/addons/plugin.video.milionar/resources/media/search_action_idle.png</texture>
                        <visible>String.IsEqual(Window.Property(WCS.Search.Mode),download) + !String.IsEqual(ListItem.Property(provider),kraska)</visible>
                    </control>
                    <control type="image">
                        <left>720</left>
                        <top>15</top>
                        <width>80</width>
                        <height>80</height>
                        <aspectratio>keep</aspectratio>
                        <texture colordiffuse="FFFFFFFF">icons/sidemenu/download.png</texture>
                        <visible>String.IsEqual(Window.Property(WCS.Search.Mode),download) + !String.IsEqual(ListItem.Property(provider),kraska)</visible>
                    </control>
                    <control type="image">
                        <left>720</left>
                        <top>15</top>
                        <width>80</width>
                        <height>80</height>
                        <texture colordiffuse="66FFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_action_idle.png</texture>
                        <visible>String.IsEqual(Window.Property(WCS.Search.Mode),download) + String.IsEqual(ListItem.Property(provider),kraska)</visible>
                    </control>
                    <control type="image">
                        <left>720</left>
                        <top>15</top>
                        <width>80</width>
                        <height>80</height>
                        <aspectratio>keep</aspectratio>
                        <texture colordiffuse="55FFFFFF">icons/sidemenu/download.png</texture>
                        <visible>String.IsEqual(Window.Property(WCS.Search.Mode),download) + String.IsEqual(ListItem.Property(provider),kraska)</visible>
                    </control>
                </itemlayout>
                <focusedlayout width="816" height="121">
                    <control type="image">
                        <left>0</left>
                        <top>0</top>
                        <width>816</width>
                        <height>110</height>
                        <texture border="20" colordiffuse="400B56CF">special://home/addons/plugin.video.milionar/resources/media/search_row_fill.png</texture>
                    </control>
                    <control type="image">
                        <left>0</left>
                        <top>0</top>
                        <width>816</width>
                        <height>110</height>
                        <texture border="20" colordiffuse="FF4E8CFF">special://home/addons/plugin.video.milionar/resources/media/search_row_stroke.png</texture>
                    </control>
                    <control type="image">
                        <left>19</left>
                        <top>15</top>
                        <width>80</width>
                        <height>80</height>
                        <texture>special://home/addons/plugin.video.milionar/resources/media/search_badge_w.png</texture>
                        <visible>!String.IsEqual(ListItem.Property(provider),kraska)</visible>
                    </control>
                    <control type="image">
                        <left>19</left>
                        <top>15</top>
                        <width>80</width>
                        <height>80</height>
                        <texture>special://home/addons/plugin.video.milionar/resources/media/search_badge_k.png</texture>
                        <visible>String.IsEqual(ListItem.Property(provider),kraska)</visible>
                    </control>
                    <control type="label">
                        <left>121</left>
                        <top>0</top>
                        <width>580</width>
                        <height>60</height>
                        <font>font10</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <label>$INFO[ListItem.Property(filename)]</label>
                        <align>left</align>
                        <aligny>center</aligny>
                        <wrapmultiline>true</wrapmultiline>
                    </control>
                    <!-- Chipy (kvalita, formát, velikost, jazyk): obrázek na řádek z wcs/ui/chip_strip.py -->
                    <control type="image">
                        <left>119</left>
                        <top>61</top>
                        <width>580</width>
                        <height>33</height>
                        <aspectratio align="left" aligny="center">keep</aspectratio>
                        <texture colordiffuse="FFFFFFFF">$INFO[ListItem.Property(chips_image)]</texture>
                    </control>
                    <control type="image">
                        <left>720</left>
                        <top>15</top>
                        <width>80</width>
                        <height>80</height>
                        <texture>special://home/addons/plugin.video.milionar/resources/media/search_play_focus.png</texture>
                        <visible>!String.IsEqual(Window.Property(WCS.Search.Mode),download)</visible>
                    </control>
                    <!-- Režim stahování: pozadí + ikona Kodi; KRA.sk stahovat neumíme -> ztlumeno -->
                    <control type="image">
                        <left>720</left>
                        <top>15</top>
                        <width>80</width>
                        <height>80</height>
                        <texture>special://home/addons/plugin.video.milionar/resources/media/search_action_focus.png</texture>
                        <visible>String.IsEqual(Window.Property(WCS.Search.Mode),download) + !String.IsEqual(ListItem.Property(provider),kraska)</visible>
                    </control>
                    <control type="image">
                        <left>720</left>
                        <top>15</top>
                        <width>80</width>
                        <height>80</height>
                        <aspectratio>keep</aspectratio>
                        <texture colordiffuse="FFFFFFFF">icons/sidemenu/download.png</texture>
                        <visible>String.IsEqual(Window.Property(WCS.Search.Mode),download) + !String.IsEqual(ListItem.Property(provider),kraska)</visible>
                    </control>
                    <control type="image">
                        <left>720</left>
                        <top>15</top>
                        <width>80</width>
                        <height>80</height>
                        <texture colordiffuse="66FFFFFF">special://home/addons/plugin.video.milionar/resources/media/search_action_idle.png</texture>
                        <visible>String.IsEqual(Window.Property(WCS.Search.Mode),download) + String.IsEqual(ListItem.Property(provider),kraska)</visible>
                    </control>
                    <control type="image">
                        <left>720</left>
                        <top>15</top>
                        <width>80</width>
                        <height>80</height>
                        <aspectratio>keep</aspectratio>
                        <texture colordiffuse="55FFFFFF">icons/sidemenu/download.png</texture>
                        <visible>String.IsEqual(Window.Property(WCS.Search.Mode),download) + String.IsEqual(ListItem.Property(provider),kraska)</visible>
                    </control>
                </focusedlayout>
            </control>

            <control type="scrollbar" id="60">
                <left>851</left>
                <top>140</top>
                <width>6</width>
                <height>594</height>
                <orientation>vertical</orientation>
                <showonepage>false</showonepage>
                <texturesliderbackground>-</texturesliderbackground>
                <texturesliderbar colordiffuse="66FFFFFF">special://home/addons/plugin.video.milionar/resources/media/scrollbar_rounded.png</texturesliderbar>
                <texturesliderbarfocus colordiffuse="FF4E8CFF">special://home/addons/plugin.video.milionar/resources/media/scrollbar_rounded.png</texturesliderbarfocus>
                <onleft>50</onleft>
                <onright>noop</onright>
            </control>
        </control>
    </controls>
</window>
