<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog">
    <defaultcontrol always="true">103</defaultcontrol>
    
    <animation effect="slide" start="0,-205" end="0,0" time="400" tween="cubic" easing="out">WindowOpen</animation>
    <animation effect="slide" start="0,0" end="0,-205" time="300" tween="cubic" easing="in">WindowClose</animation>
    
    <controls>
        <control type="group">
            <left>0</left>
            <top>0</top>
            <width>1920</width>
            <height>195</height>
            <animation effect="fade" start="0" end="100" time="500" delay="200">WindowOpen</animation>
            <animation effect="conditional" start="195" end="1080" time="400" tween="cubic" easing="out" condition="String.IsEqual(Window.Property(WCS.Episode.ShowPlot),true)">Height</animation>
            <animation effect="conditional" start="195" end="1080" time="400" tween="cubic" easing="out" condition="String.IsEqual(Window.Property(WCS.Episode.ShowGame),true)">Height</animation>
            
            <!-- Pozadi - gradient vytraceji se dolu -->
            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>1920</width>
                <height>195</height>
                <texture colordiffuse="E0080810">special://home/addons/plugin.video.milionar/resources/media/gradient_top_fade.png</texture>
                <animation effect="conditional" start="195" end="1080" time="400" tween="cubic" easing="out" condition="String.IsEqual(Window.Property(WCS.Episode.ShowPlot),true)">Height</animation>
                <animation effect="conditional" start="195" end="1080" time="400" tween="cubic" easing="out" condition="String.IsEqual(Window.Property(WCS.Episode.ShowGame),true)">Height</animation>
            </control>
            
            <!-- HLAVNI RADEK -->
            <control type="group">
                <left>60</left>
                <top>0</top>
                <width>1800</width>
                <height>195</height>
                
                <!-- Thumbnail 304x171, padding 12px nahore i dole -->
                <control type="image">
                    <left>0</left>
                    <top>15</top>
                    <width>304</width>
                    <height>168</height>
                    <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png">$INFO[Window.Property(WCS.Episode.Thumb)]</texture>
                    <aspectratio>scale</aspectratio>
                </control>
                <control type="image">
                    <left>0</left>
                    <top>15</top>
                    <width>304</width>
                    <height>168</height>
                    <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" colordiffuse="33FFFFFF">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                    <visible>String.IsEmpty(Window.Property(WCS.Episode.Thumb))</visible>
                </control>
                
                <!-- Metadata - rovnomerne rozlozene -->
                <control type="group">
                    <left>326</left>
                    <top>12</top>
                    <width>800</width>
                    <height>171</height>
                    
                    <!-- Radek 1: "Nyni se prehrává:" -->
                    <control type="label">
                        <left>0</left>
                        <top>8</top>
                        <width>800</width>
                        <height>25</height>
                        <font>font10</font>
                        <textcolor>FF888888</textcolor>
                        <label>Nyní se přehrává:</label>
                        <align>left</align>
                    </control>
                    
                    <!-- Radek 2: Nazev serialu -->
                    <control type="label">
                        <left>0</left>
                        <top>41</top>
                        <width>800</width>
                        <height>32</height>
                        <font>font13</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <label>$INFO[Window.Property(WCS.Episode.SeriesName)]</label>
                        <align>left</align>
                        <scroll>true</scroll>
                        <scrollsuffix>  •  </scrollsuffix>
                        <scrollspeed>30</scrollspeed>
                    </control>
                    
                    <!-- Radek 3: SeasonEpisode (cervena) | Rok (modra) | Rating (zluta) -->
                    <control type="label" id="211">
                        <left>0</left>
                        <top>83</top>
                        <width>auto</width>
                        <height>30</height>
                        <font>font13</font>
                        <textcolor>FFFF6B6B</textcolor>
                        <label>$INFO[Window.Property(WCS.Episode.SeasonEpisode)]</label>
                        <align>left</align>
                    </control>
                    
                    <control type="label" id="212">
                        <left>115</left>
                        <top>83</top>
                        <width>auto</width>
                        <height>30</height>
                        <font>font13</font>
                        <textcolor>FF87CEEB</textcolor>
                        <label>$INFO[Window.Property(WCS.Episode.YearOnly)]</label>
                        <align>left</align>
                        <visible>!String.IsEmpty(Window.Property(WCS.Episode.YearOnly))</visible>
                    </control>
                    
                    <control type="label" id="213">
                        <left>200</left>
                        <top>83</top>
                        <width>auto</width>
                        <height>30</height>
                        <font>font13</font>
                        <textcolor>FFFFFF00</textcolor>
                        <label>$INFO[Window.Property(WCS.Episode.RatingOnly)]</label>
                        <align>left</align>
                        <visible>!String.IsEmpty(Window.Property(WCS.Episode.RatingOnly))</visible>
                    </control>
                    
                    <!-- Radek 4: Nazev epizody (VELKY - hlavni info) -->
                    <control type="label">
                        <left>0</left>
                        <top>125</top>
                        <width>800</width>
                        <height>40</height>
                        <font>font37</font>
                        <textcolor>FFAAAAAA</textcolor>
                        <label>$INFO[Window.Property(WCS.Episode.Title)]</label>
                        <align>left</align>
                        <scroll>true</scroll>
                        <scrollsuffix>  •  </scrollsuffix>
                        <scrollspeed>30</scrollspeed>
                    </control>
                </control>
                
                <!-- Akcni tlacitka - vpravo, vertikalne centrovane: (195-45)/2=75 -->
                <control type="list" id="103">
                    <left>1310</left>
                    <top>75</top>
                    <width>490</width>
                    <height>50</height>
                    <orientation>horizontal</orientation>
                    <ondown>501</ondown>
                    <onup>noop</onup>
                    <itemlayout height="45" width="155">
                        <control type="image">
                            <left>5</left>
                            <top>0</top>
                            <width>145</width>
                            <height>45</height>
                            <texture border="20" colordiffuse="25808080">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texture>
                        </control>
                        <control type="label">
                            <left>5</left>
                            <top>0</top>
                            <width>145</width>
                            <height>45</height>
                            <align>center</align>
                            <aligny>center</aligny>
                            <label>$INFO[ListItem.Label]</label>
                            <textcolor>AAFFFFFF</textcolor>
                            <font>font13</font>
                        </control>
                    </itemlayout>
                    <focusedlayout height="45" width="155">
                        <control type="group">
                            <visible>!Control.HasFocus(103)</visible>
                            <control type="image">
                                <left>5</left>
                                <top>0</top>
                                <width>145</width>
                                <height>45</height>
                                <texture border="20" colordiffuse="25808080">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texture>
                            </control>
                            <control type="label">
                                <left>5</left>
                                <top>0</top>
                                <width>145</width>
                                <height>45</height>
                                <align>center</align>
                                <aligny>center</aligny>
                                <label>$INFO[ListItem.Label]</label>
                                <textcolor>AAFFFFFF</textcolor>
                                <font>font13</font>
                            </control>
                        </control>
                        <control type="group">
                            <visible>Control.HasFocus(103)</visible>
                            <control type="image">
                                <left>5</left>
                                <top>0</top>
                                <width>145</width>
                                <height>45</height>
                                <texture border="20" colordiffuse="60FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texture>
                            </control>
                            <control type="label">
                                <left>5</left>
                                <top>0</top>
                                <width>145</width>
                                <height>45</height>
                                <align>center</align>
                                <aligny>center</aligny>
                                <label>$INFO[ListItem.Label]</label>
                                <textcolor>FFFFFFFF</textcolor>
                                <font>font13</font>
                            </control>
                        </control>
                    </focusedlayout>
                </control>
            </control>
            
            <!-- PLOT SEKCE -->
            <control type="group">
                <left>0</left>
                <top>200</top>
                <width>1920</width>
                <height>880</height>
                <visible>String.IsEqual(Window.Property(WCS.Episode.ShowPlot),true)</visible>
                <animation effect="fade" start="0" end="100" time="300" delay="200">Visible</animation>
                <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
                
                <control type="textbox" id="400">
                    <left>200</left>
                    <top>30</top>
                    <width>1520</width>
                    <height>620</height>
                    <font>font13</font>
                    <textcolor>FFFFFFFF</textcolor>
                    <label>$INFO[Window.Property(WCS.Episode.FullInfo)]</label>
                    <align>left</align>
                    <aligny>top</aligny>
                    <pagecontrol>401</pagecontrol>
                    <onup>103</onup>
                    <ondown>501</ondown>
                </control>
                
                <control type="scrollbar" id="401">
                    <left>1740</left>
                    <top>30</top>
                    <width>15</width>
                    <height>620</height>
                    <orientation>vertical</orientation>
                    <showonepage>false</showonepage>
                    <onleft>501</onleft>
                    <onup>103</onup>
                    <ondown>501</ondown>
                </control>
                
                <control type="group">
                    <left>200</left>
                    <top>670</top>
                    <width>1520</width>
                    <height>50</height>
                    
                    <control type="button" id="501">
                        <left>0</left>
                        <top>0</top>
                        <width>480</width>
                        <height>45</height>
                        <font>font13</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <label>Upravit příběh</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus border="20" colordiffuse="FF6C5CE7">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texturefocus>
                        <texturenofocus colordiffuse="25808080">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texturenofocus>
                        <onup>103</onup>
                        <ondown>502</ondown>
                        <onleft>503</onleft>
                        <onright>502</onright>
                    </control>
                    
                    <control type="button" id="502">
                        <left>520</left>
                        <top>0</top>
                        <width>480</width>
                        <height>45</height>
                        <font>font13</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <label>Uložené úpravy</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus border="20" colordiffuse="FF00D4AA">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texturefocus>
                        <texturenofocus colordiffuse="25808080">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texturenofocus>
                        <onup>501</onup>
                        <ondown>503</ondown>
                        <onleft>501</onleft>
                        <onright>503</onright>
                    </control>
                    
                    <control type="button" id="503">
                        <left>1040</left>
                        <top>0</top>
                        <width>480</width>
                        <height>45</height>
                        <font>font13</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <label>Zavřít</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus border="20" colordiffuse="FFFF5722">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texturefocus>
                        <texturenofocus colordiffuse="25808080">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texturenofocus>
                        <onup>502</onup>
                        <ondown>503</ondown>
                        <onleft>502</onleft>
                        <onright>501</onright>
                    </control>
                </control>
            </control>
            
            <!-- HERNI SEKCE -->
            <control type="group">
                <left>0</left>
                <top>200</top>
                <width>1920</width>
                <height>880</height>
                <visible>String.IsEqual(Window.Property(WCS.Episode.ShowGame),true)</visible>
                <animation effect="fade" start="0" end="100" time="300" delay="200">Visible</animation>
                <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
                
                <control type="textbox" id="200">
                    <left>200</left>
                    <top>30</top>
                    <width>1520</width>
                    <height>620</height>
                    <font>font13</font>
                    <textcolor>FFFFFFFF</textcolor>
                    <label>$INFO[Window.Property(WCS.Game.Text)]</label>
                    <align>left</align>
                    <aligny>top</aligny>
                    <autoscroll delay="500" time="500">true</autoscroll>
                    <pagecontrol>202</pagecontrol>
                    <onup>103</onup>
                    <ondown>301</ondown>
                    <visible>String.IsEqual(Window.Property(WCS.Episode.ShowGame),true) + String.IsEqual(Window.Property(WCS.Game.Type),adventure) + String.IsEqual(Window.Property(WCS.Game.State),playing)</visible>
                </control>
                <control type="textbox" id="201">
                    <left>200</left>
                    <top>30</top>
                    <width>1520</width>
                    <height>620</height>
                    <font>font13</font>
                    <textcolor>FFFFFFFF</textcolor>
                    <label>$INFO[Window.Property(WCS.Game.Text)]</label>
                    <align>left</align>
                    <aligny>top</aligny>
                    <autoscroll delay="2500" time="2500">true</autoscroll>
                    <pagecontrol>202</pagecontrol>
                    <onup>103</onup>
                    <ondown>301</ondown>
                    <visible>!String.IsEqual(Window.Property(WCS.Episode.ShowGame),true) | !String.IsEqual(Window.Property(WCS.Game.Type),adventure) | !String.IsEqual(Window.Property(WCS.Game.State),playing)</visible>
                </control>
                
                <control type="scrollbar" id="202">
                    <left>1740</left>
                    <top>30</top>
                    <width>15</width>
                    <height>620</height>
                    <orientation>vertical</orientation>
                    <showonepage>false</showonepage>
                    <onleft>301</onleft>
                    <onup>103</onup>
                    <ondown>301</ondown>
                </control>
                
                <control type="group">
                    <left>200</left>
                    <top>670</top>
                    <width>1520</width>
                    <height>150</height>
                    
                    <control type="button" id="301">
                        <left>0</left>
                        <top>0</top>
                        <width>740</width>
                        <height>45</height>
                        <font>font13</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <label>$INFO[Window.Property(WCS.Game.Button1)]</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus border="20" colordiffuse="FF6C5CE7">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texturefocus>
                        <texturenofocus colordiffuse="25808080">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texturenofocus>
                        <onup>200</onup>
                        <ondown>303</ondown>
                        <onleft>301</onleft>
                        <onright>302</onright>
                    </control>
                    
                    <control type="button" id="302">
                        <left>780</left>
                        <top>0</top>
                        <width>740</width>
                        <height>45</height>
                        <font>font13</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <label>$INFO[Window.Property(WCS.Game.Button2)]</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus border="20" colordiffuse="FF00D4AA">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texturefocus>
                        <texturenofocus colordiffuse="25808080">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texturenofocus>
                        <onup>200</onup>
                        <ondown>304</ondown>
                        <onleft>301</onleft>
                        <onright>202</onright>
                    </control>
                    
                    <control type="button" id="303">
                        <left>0</left>
                        <top>55</top>
                        <width>740</width>
                        <height>45</height>
                        <font>font13</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <label>$INFO[Window.Property(WCS.Game.Button3)]</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus border="20" colordiffuse="FFFF9F40">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texturefocus>
                        <texturenofocus colordiffuse="25808080">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texturenofocus>
                        <onup>301</onup>
                        <ondown>303</ondown>
                        <onleft>303</onleft>
                        <onright>304</onright>
                    </control>
                    
                    <control type="button" id="304">
                        <left>780</left>
                        <top>55</top>
                        <width>740</width>
                        <height>45</height>
                        <font>font13</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <label>$INFO[Window.Property(WCS.Game.Button4)]</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus border="20" colordiffuse="FFEF5350">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texturefocus>
                        <texturenofocus colordiffuse="25808080">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texturenofocus>
                        <onup>302</onup>
                        <ondown>304</ondown>
                        <onleft>303</onleft>
                        <onright>202</onright>
                    </control>
                </control>
            </control>
            
        </control>
    </controls>
</window>