<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog">
    <defaultcontrol always="true">112</defaultcontrol>

    <!-- Animace -->
    <animation effect="slide" start="-390,0" end="0,0" time="400" tween="cubic" easing="out">WindowOpen</animation>
    <animation effect="slide" start="0,0" end="-390,0" time="400" tween="cubic" easing="out">WindowClose</animation>

    <controls>
        <!-- Premium karta v levém horním rohu -->
        <control type="group">
            <left>50</left>
            <top>50</top>
            <width>628</width>
            <height>294</height>
            <animation effect="fade" start="0" end="100" time="500" delay="200">WindowOpen</animation>
            <!-- Rozšíření karty při zobrazení plotu -->
            <animation effect="conditional" start="294" end="754" time="300" condition="String.IsEqual(Window.Property(WCS.Episode.ShowPlot),true)">Height</animation>
            <!-- Rozšíření karty při zobrazení hry -->
            <animation effect="conditional" start="294" end="754" time="300" condition="String.IsEqual(Window.Property(WCS.Episode.ShowGame),true)">Height</animation>

            <!-- Základ karty (tmavá sklovitá plocha) -->
            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>628</width>
                <height>294</height>
                <texture border="36" colordiffuse="D927272B">special://home/addons/plugin.video.milionar/resources/media/notif_card_fill.png</texture>
                <animation effect="conditional" start="294" end="754" time="300" condition="String.IsEqual(Window.Property(WCS.Episode.ShowPlot),true)">Height</animation>
                <animation effect="conditional" start="294" end="754" time="300" condition="String.IsEqual(Window.Property(WCS.Episode.ShowGame),true)">Height</animation>
            </control>

            <!-- Okraj karty -->
            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>628</width>
                <height>294</height>
                <texture border="36" colordiffuse="FF57575E">special://home/addons/plugin.video.milionar/resources/media/notif_card_stroke.png</texture>
                <animation effect="conditional" start="294" end="754" time="300" condition="String.IsEqual(Window.Property(WCS.Episode.ShowPlot),true)">Height</animation>
                <animation effect="conditional" start="294" end="754" time="300" condition="String.IsEqual(Window.Property(WCS.Episode.ShowGame),true)">Height</animation>
            </control>

            <!-- Náhled epizody -->
            <control type="image">
                <left>24</left>
                <top>24</top>
                <width>170</width>
                <height>153</height>
                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/notif_thumb_mask.png">$INFO[Window.Property(WCS.Episode.Thumb)]</texture>
                <aspectratio scalediffuse="false">scale</aspectratio>
            </control>

            <!-- Fallback obrázek pokud není dostupný -->
            <control type="image">
                <left>24</left>
                <top>24</top>
                <width>170</width>
                <height>153</height>
                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/notif_thumb_mask.png" colordiffuse="12FFFFFF">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                <visible>String.IsEmpty(Window.Property(WCS.Episode.Thumb))</visible>
            </control>

            <!-- "Právě se přehrává" -->
            <control type="label">
                <left>219</left>
                <top>20</top>
                <width>380</width>
                <height>34</height>
                <font>font10</font>
                <textcolor>FFB1B2B9</textcolor>
                <label>$ADDON[plugin.video.milionar 32138]</label>
                <align>left</align>
                <aligny>center</aligny>
            </control>

            <!-- Název seriálu -->
            <control type="label">
                <left>220</left>
                <top>38</top>
                <width>384</width>
                <height>63</height>
                <font>font32_title</font>
                <textcolor>FFFBFBFD</textcolor>
                <label>$INFO[Window.Property(WCS.Episode.SeriesName)]</label>
                <align>left</align>
                <aligny>center</aligny>
                <scroll>true</scroll>
                <scrollsuffix>  •  </scrollsuffix>
                <scrollspeed>30</scrollspeed>
            </control>

            <!-- SxxExx • rok • hodnocení -->
            <control type="label">
                <left>220</left>
                <top>90</top>
                <width>384</width>
                <height>45</height>
                <font>font27</font>
                <textcolor>FFC9CAD0</textcolor>
                <label>$INFO[Window.Property(WCS.Episode.MetaLine)]</label>
                <align>left</align>
                <aligny>center</aligny>
            </control>

            <!-- Název epizody -->
            <control type="label">
                <left>220</left>
                <top>134</top>
                <width>384</width>
                <height>39</height>
                <font>font12</font>
                <textcolor>FFB7B8BE</textcolor>
                <label>$INFO[Window.Property(WCS.Episode.Title)]</label>
                <align>left</align>
                <aligny>center</aligny>
                <scroll>true</scroll>
                <scrollsuffix>  •  </scrollsuffix>
                <scrollspeed>30</scrollspeed>
            </control>

            <!-- Akční tlačítka -->

            <!-- Info -->
            <control type="button" id="110">
                <left>24</left>
                <top>200</top>
                <width>204</width>
                <height>70</height>
                <font>font12</font>
                <textcolor>FFECECF1</textcolor>
                <focusedcolor>FF101014</focusedcolor>
                <label></label>
                <align>center</align>
                <aligny>center</aligny>
                <texturefocus border="25" colordiffuse="FFFFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_button_fill.png</texturefocus>
                <texturenofocus border="25" colordiffuse="0FFFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_button_fill.png</texturenofocus>
                <onleft>noop</onleft>
                <onright>111</onright>
                <onup>noop</onup>
                <ondown>501</ondown>
            </control>
            <control type="image">
                <left>24</left>
                <top>200</top>
                <width>204</width>
                <height>70</height>
                <texture border="25" colordiffuse="38FFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_button_stroke.png</texture>
                <visible>!Control.HasFocus(110)</visible>
            </control>
            <control type="image">
                <left>78</left>
                <top>217</top>
                <width>36</width>
                <height>36</height>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="FFECECF1">DefaultIconInfo.png</texture>
                <visible>!Control.HasFocus(110)</visible>
            </control>
            <control type="image">
                <left>78</left>
                <top>217</top>
                <width>36</width>
                <height>36</height>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="FF101014">DefaultIconInfo.png</texture>
                <visible>Control.HasFocus(110)</visible>
            </control>
            <control type="label">
                <left>129</left>
                <top>219</top>
                <width>90</width>
                <height>33</height>
                <font>font12</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>129</left>
                <top>219</top>
                <width>90</width>
                <height>33</height>
                <font>font12</font>
                <textcolor>FF101014</textcolor>
                <label>$ADDON[plugin.video.milionar 32142]</label>
                <align>left</align>
                <aligny>center</aligny>
                <visible>Control.HasFocus(110)</visible>
            </control>

            <!-- Přehrát -->
            <control type="button" id="111">
                <left>242</left>
                <top>200</top>
                <width>278</width>
                <height>70</height>
                <font>font12</font>
                <textcolor>FFECECF1</textcolor>
                <focusedcolor>FF101014</focusedcolor>
                <label></label>
                <align>center</align>
                <aligny>center</aligny>
                <texturefocus border="25" colordiffuse="FFFFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_button_fill.png</texturefocus>
                <texturenofocus border="25" colordiffuse="0FFFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_button_fill.png</texturenofocus>
                <onleft>110</onleft>
                <onright>112</onright>
                <onup>noop</onup>
                <ondown>501</ondown>
            </control>
            <control type="image">
                <left>242</left>
                <top>200</top>
                <width>278</width>
                <height>70</height>
                <texture border="25" colordiffuse="38FFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_button_stroke.png</texture>
                <visible>!Control.HasFocus(111)</visible>
            </control>
            <control type="image">
                <left>290</left>
                <top>204</top>
                <width>62</width>
                <height>62</height>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="FFECECF1">DefaultAddonGame.png</texture>
                <visible>!Control.HasFocus(111)</visible>
            </control>
            <control type="image">
                <left>290</left>
                <top>204</top>
                <width>62</width>
                <height>62</height>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="FF101014">DefaultAddonGame.png</texture>
                <visible>Control.HasFocus(111)</visible>
            </control>
            <control type="label">
                <left>354</left>
                <top>219</top>
                <width>142</width>
                <height>33</height>
                <font>font25_title</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>354</left>
                <top>219</top>
                <width>142</width>
                <height>33</height>
                <font>font25_title</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 -->
            <control type="button" id="112">
                <left>534</left>
                <top>200</top>
                <width>70</width>
                <height>70</height>
                <font>font12</font>
                <textcolor>00FFFFFF</textcolor>
                <focusedcolor>00FFFFFF</focusedcolor>
                <label></label>
                <texturefocus colordiffuse="FFFFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_circle_fill.png</texturefocus>
                <texturenofocus colordiffuse="0FFFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_circle_fill.png</texturenofocus>
                <onleft>111</onleft>
                <onright>noop</onright>
                <onup>noop</onup>
                <ondown>503</ondown>
            </control>
            <control type="image">
                <left>534</left>
                <top>200</top>
                <width>70</width>
                <height>70</height>
                <texture colordiffuse="38FFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_circle_stroke.png</texture>
                <visible>!Control.HasFocus(112)</visible>
            </control>
            <control type="image">
                <left>559</left>
                <top>225</top>
                <width>20</width>
                <height>20</height>
                <texture colordiffuse="FFECECF1">special://home/addons/plugin.video.milionar/resources/media/notif_icon_close.png</texture>
                <visible>!Control.HasFocus(112)</visible>
            </control>
            <control type="image">
                <left>559</left>
                <top>225</top>
                <width>20</width>
                <height>20</height>
                <texture colordiffuse="FF101014">special://home/addons/plugin.video.milionar/resources/media/notif_icon_close.png</texture>
                <visible>Control.HasFocus(112)</visible>
            </control>

            <!-- Plot panel -->
            <control type="group">
                <left>0</left>
                <top>294</top>
                <width>628</width>
                <height>460</height>
                <visible>String.IsEqual(Window.Property(WCS.Episode.ShowPlot),true)</visible>
                <animation effect="slide" start="0,-15" end="0,0" time="300" tween="cubic" easing="out">Visible</animation>
                <animation effect="slide" start="0,0" end="0,-15" time="300" tween="cubic" easing="out">Hidden</animation>

                <control type="textbox" id="400">
                    <left>30</left>
                    <top>20</top>
                    <width>568</width>
                    <height>297</height>
                    <font>font12</font>
                    <textcolor>FFFFFFFF</textcolor>
                    <label>$INFO[Window.Property(WCS.Episode.FullInfo)]</label>
                    <align>left</align>
                    <aligny>top</aligny>
                    <pagecontrol>401</pagecontrol>
                    <onup>111</onup>
                    <ondown>501</ondown>
                </control>
                <control type="scrollbar" id="401">
                    <left>608</left>
                    <top>20</top>
                    <width>9</width>
                    <height>297</height>
                    <orientation>vertical</orientation>
                    <showonepage>false</showonepage>
                    <onleft>501</onleft>
                    <onup>111</onup>
                    <ondown>501</ondown>
                </control>

                <control type="group">
                    <left>30</left>
                    <top>330</top>
                    <width>568</width>
                    <height>122</height>

                    <control type="image">
                        <left>0</left>
                        <top>0</top>
                        <width>568</width>
                        <height>34</height>
                        <texture border="16" colordiffuse="38FFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_stroke.png</texture>
                    </control>
                    <control type="button" id="501">
                        <left>0</left>
                        <top>0</top>
                        <width>568</width>
                        <height>34</height>
                        <font>font12</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <label>Upravit příběh</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus border="16" colordiffuse="FF0078D7">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_fill.png</texturefocus>
                        <texturenofocus border="16" colordiffuse="0FFFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_fill.png</texturenofocus>
                        <onup>400</onup>
                        <ondown>502</ondown>
                        <onleft>501</onleft>
                        <onright>401</onright>
                    </control>

                    <control type="image">
                        <left>0</left>
                        <top>44</top>
                        <width>568</width>
                        <height>34</height>
                        <texture border="16" colordiffuse="38FFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_stroke.png</texture>
                    </control>
                    <control type="button" id="502">
                        <left>0</left>
                        <top>44</top>
                        <width>568</width>
                        <height>34</height>
                        <font>font12</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <label>Uložené úpravy</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus border="16" colordiffuse="FF4CAF50">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_fill.png</texturefocus>
                        <texturenofocus border="16" colordiffuse="0FFFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_fill.png</texturenofocus>
                        <onup>501</onup>
                        <ondown>503</ondown>
                        <onleft>502</onleft>
                        <onright>401</onright>
                    </control>

                    <control type="image">
                        <left>0</left>
                        <top>87</top>
                        <width>568</width>
                        <height>34</height>
                        <texture border="16" colordiffuse="38FFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_stroke.png</texture>
                    </control>
                    <control type="button" id="503">
                        <left>0</left>
                        <top>87</top>
                        <width>568</width>
                        <height>34</height>
                        <font>font12</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <label>Zavřít</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus border="16" colordiffuse="FFF44336">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_fill.png</texturefocus>
                        <texturenofocus border="16" colordiffuse="0FFFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_fill.png</texturenofocus>
                        <onup>502</onup>
                        <ondown>noop</ondown>
                        <onleft>503</onleft>
                        <onright>401</onright>
                    </control>
                </control>
            </control>

            <!-- Herní sekce -->
            <control type="group">
                <left>0</left>
                <top>294</top>
                <width>628</width>
                <height>460</height>
                <visible>String.IsEqual(Window.Property(WCS.Episode.ShowGame),true)</visible>
                <animation effect="slide" start="0,-15" end="0,0" time="300" tween="cubic" easing="out">Visible</animation>
                <animation effect="slide" start="0,0" end="0,-15" time="300" tween="cubic" easing="out">Hidden</animation>

                <control type="textbox" id="200">
                    <left>30</left>
                    <top>20</top>
                    <width>568</width>
                    <height>278</height>
                    <font>font12</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>111</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>30</left>
                    <top>20</top>
                    <width>568</width>
                    <height>278</height>
                    <font>font12</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>111</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>608</left>
                    <top>20</top>
                    <width>9</width>
                    <height>278</height>
                    <orientation>vertical</orientation>
                    <showonepage>false</showonepage>
                    <onleft>301</onleft>
                    <onup>111</onup>
                    <ondown>301</ondown>
                </control>

                <control type="group">
                    <left>30</left>
                    <top>308</top>
                    <width>568</width>
                    <height>153</height>

                    <control type="image">
                        <left>0</left>
                        <top>0</top>
                        <width>568</width>
                        <height>34</height>
                        <texture border="16" colordiffuse="38FFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_stroke.png</texture>
                    </control>
                    <control type="button" id="301">
                        <left>0</left>
                        <top>0</top>
                        <width>568</width>
                        <height>34</height>
                        <font>font12</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <label>$INFO[Window.Property(WCS.Game.Button1)]</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus border="16" colordiffuse="FF0078D7">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_fill.png</texturefocus>
                        <texturenofocus border="16" colordiffuse="0FFFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_fill.png</texturenofocus>
                        <onup>200</onup>
                        <ondown>302</ondown>
                        <onleft>301</onleft>
                        <onright>202</onright>
                    </control>

                    <control type="image">
                        <left>0</left>
                        <top>39</top>
                        <width>568</width>
                        <height>34</height>
                        <texture border="16" colordiffuse="38FFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_stroke.png</texture>
                    </control>
                    <control type="button" id="302">
                        <left>0</left>
                        <top>39</top>
                        <width>568</width>
                        <height>34</height>
                        <font>font12</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <label>$INFO[Window.Property(WCS.Game.Button2)]</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus border="16" colordiffuse="FF4CAF50">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_fill.png</texturefocus>
                        <texturenofocus border="16" colordiffuse="0FFFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_fill.png</texturenofocus>
                        <onup>301</onup>
                        <ondown>303</ondown>
                        <onleft>302</onleft>
                        <onright>202</onright>
                    </control>

                    <control type="image">
                        <left>0</left>
                        <top>78</top>
                        <width>568</width>
                        <height>34</height>
                        <texture border="16" colordiffuse="38FFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_stroke.png</texture>
                    </control>
                    <control type="button" id="303">
                        <left>0</left>
                        <top>78</top>
                        <width>568</width>
                        <height>34</height>
                        <font>font12</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <label>$INFO[Window.Property(WCS.Game.Button3)]</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus border="16" colordiffuse="FFFF9800">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_fill.png</texturefocus>
                        <texturenofocus border="16" colordiffuse="0FFFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_fill.png</texturenofocus>
                        <onup>302</onup>
                        <ondown>304</ondown>
                        <onleft>303</onleft>
                        <onright>202</onright>
                    </control>

                    <control type="image">
                        <left>0</left>
                        <top>117</top>
                        <width>568</width>
                        <height>34</height>
                        <texture border="16" colordiffuse="38FFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_stroke.png</texture>
                    </control>
                    <control type="button" id="304">
                        <left>0</left>
                        <top>117</top>
                        <width>568</width>
                        <height>34</height>
                        <font>font12</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <label>$INFO[Window.Property(WCS.Game.Button4)]</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus border="16" colordiffuse="FFF44336">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_fill.png</texturefocus>
                        <texturenofocus border="16" colordiffuse="0FFFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_pill_small_fill.png</texturenofocus>
                        <onup>303</onup>
                        <ondown>noop</ondown>
                        <onleft>304</onleft>
                        <onright>202</onright>
                    </control>
                </control>
            </control>

        </control>
    </controls>
</window>
