<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog">
    <defaultcontrol always="true">120</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 countdown karta v levém horním rohu -->
        <control type="group">
            <left>50</left>
            <top>50</top>
            <width>628</width>
            <height>316</height>
            <animation effect="fade" start="0" end="100" time="500" delay="200">WindowOpen</animation>

            <!-- Základ karty -->
            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>628</width>
                <height>316</height>
                <texture border="36" colordiffuse="D927272B">special://home/addons/plugin.video.milionar/resources/media/notif_card_fill.png</texture>
            </control>

            <!-- Okraj karty -->
            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>628</width>
                <height>316</height>
                <texture border="36" colordiffuse="FF57575E">special://home/addons/plugin.video.milionar/resources/media/notif_card_stroke.png</texture>
            </control>

            <!-- Náhled další 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.Autoplay.NextEpisode.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.Autoplay.NextEpisode.Thumb))</visible>
            </control>

            <!-- "Další epizoda" -->
            <control type="label">
                <left>220</left>
                <top>20</top>
                <width>240</width>
                <height>34</height>
                <font>font10</font>
                <textcolor>FFB1B2B9</textcolor>
                <label>$ADDON[plugin.video.milionar 32140]</label>
                <align>left</align>
                <aligny>center</aligny>
            </control>

            <!-- Odpočet -->
            <control type="label">
                <left>464</left>
                <top>20</top>
                <width>140</width>
                <height>34</height>
                <font>font10</font>
                <textcolor>FFF2DD56</textcolor>
                <label>$INFO[Window.Property(WCS.Autoplay.CountdownTime)] s</label>
                <align>right</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.Autoplay.SeriesTitle)]</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.Autoplay.MetaLine)]</label>
                <align>left</align>
                <aligny>center</aligny>
            </control>

            <!-- Název další 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.Autoplay.NextEpisode.Title)]</label>
                <align>left</align>
                <aligny>center</aligny>
                <scroll>true</scroll>
                <scrollsuffix>  •  </scrollsuffix>
                <scrollspeed>30</scrollspeed>
            </control>

            <!-- Ukončit -->
            <control type="button" id="121">
                <left>24</left>
                <top>200</top>
                <width>204</width>
                <height>70</height>
                <font>font12</font>
                <textcolor>FFECECF1</textcolor>
                <focusedcolor>FF101014</focusedcolor>
                <label>$ADDON[plugin.video.milionar 32141]</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>120</onright>
                <onup>noop</onup>
                <ondown>noop</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(121)</visible>
            </control>

            <!-- Přehrát -->
            <control type="button" id="120">
                <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>121</onleft>
                <onright>122</onright>
                <onup>noop</onup>
                <ondown>noop</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(120)</visible>
            </control>
            <control type="image">
                <left>302</left>
                <top>224</top>
                <width>28</width>
                <height>24</height>
                <texture colordiffuse="FFECECF1">special://home/addons/plugin.video.milionar/resources/media/notif_icon_play.png</texture>
                <visible>!Control.HasFocus(120)</visible>
            </control>
            <control type="image">
                <left>302</left>
                <top>224</top>
                <width>28</width>
                <height>24</height>
                <texture colordiffuse="FF101014">special://home/addons/plugin.video.milionar/resources/media/notif_icon_play.png</texture>
                <visible>Control.HasFocus(120)</visible>
            </control>
            <control type="label">
                <left>352</left>
                <top>219</top>
                <width>142</width>
                <height>33</height>
                <font>font25_title</font>
                <textcolor>FFECECF1</textcolor>
                <label>$ADDON[plugin.video.milionar 40004]</label>
                <align>left</align>
                <aligny>center</aligny>
                <visible>!Control.HasFocus(120)</visible>
            </control>
            <control type="label">
                <left>352</left>
                <top>219</top>
                <width>142</width>
                <height>33</height>
                <font>font25_title</font>
                <textcolor>FF101014</textcolor>
                <label>$ADDON[plugin.video.milionar 40004]</label>
                <align>left</align>
                <aligny>center</aligny>
                <visible>Control.HasFocus(120)</visible>
            </control>

            <!-- Zavřít -->
            <control type="button" id="122">
                <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>120</onleft>
                <onright>noop</onright>
                <onup>noop</onup>
                <ondown>noop</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(122)</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(122)</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(122)</visible>
            </control>

            <!-- Progress odpočtu -->
            <control type="progress" id="105">
                <left>24</left>
                <top>284</top>
                <width>580</width>
                <height>8</height>
                <texturebg border="3" colordiffuse="1AFFFFFF">special://home/addons/plugin.video.milionar/resources/media/notif_progress_fill.png</texturebg>
                <lefttexture>-</lefttexture>
                <midtexture border="3" colordiffuse="FFF2DD56">special://home/addons/plugin.video.milionar/resources/media/notif_progress_fill.png</midtexture>
                <righttexture>-</righttexture>
                <info>Window.Property(WCS.Autoplay.Progress)</info>
            </control>

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