<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog">
    <defaultcontrol always="true">103</defaultcontrol>
    
    <!-- Animace - fade in/out -->
    <animation effect="fade" start="0" end="100" time="600" tween="cubic" easing="out">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="400" tween="cubic" easing="in">WindowClose</animation>
    
    <controls>
        <!-- ============================================================ -->
        <!-- MINIMAL: Tenký pruh nahoře - Episode Info                     -->
        <!-- ============================================================ -->
        <control type="group">
            <left>0</left>
            <top>0</top>
            <width>1920</width>
            <height>70</height>
            
            <!-- Tmavé pozadí -->
            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>1920</width>
                <height>50</height>
                <texture colordiffuse="99000000">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
            </control>
            
            <!-- Gradient fade dolů -->
            <control type="image">
                <left>0</left>
                <top>50</top>
                <width>1920</width>
                <height>50</height>
                <texture colordiffuse="99000000">special://home/addons/plugin.video.milionar/resources/media/gradient_bottom.png</texture>
            </control>
            
            <!-- INLINE OBSAH -->
            <control type="group">
                <left>40</left>
                <top>6</top>
                <width>1840</width>
                <height>42</height>
                
                <!-- Malý thumbnail -->
                <control type="image">
                    <left>0</left>
                    <top>0</top>
                    <width>72</width>
                    <height>40</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>0</top>
                    <width>72</width>
                    <height>40</height>
                    <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" colordiffuse="15FFFFFF">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                    <visible>String.IsEmpty(Window.Property(WCS.Episode.Thumb))</visible>
                </control>
                
                <!-- Metadata inline -->
                <control type="group">
                    <left>85</left>
                    <top>0</top>
                    <width>1000</width>
                    <height>42</height>
                    
                    <control type="label">
                        <left>0</left>
                        <top>2</top>
                        <width>400</width>
                        <height>20</height>
                        <font>font12</font>
                        <textcolor>FFFFFFFF</textcolor>
                        <label>$INFO[Window.Property(WCS.Episode.SeriesName)]</label>
                        <align>left</align>
                        <scroll>true</scroll>
                        <scrollsuffix>  •  </scrollsuffix>
                        <scrollspeed>30</scrollspeed>
                    </control>
                    
                    <control type="label" id="211">
                        <left>0</left>
                        <top>22</top>
                        <width>auto</width>
                        <height>18</height>
                        <font>font10</font>
                        <textcolor>FF888888</textcolor>
                        <label>$INFO[Window.Property(WCS.Episode.SeasonEpisode)]</label>
                        <align>left</align>
                    </control>
                    
                    <control type="label" id="212">
                        <left>70</left>
                        <top>22</top>
                        <width>auto</width>
                        <height>18</height>
                        <font>font10</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>
                    
                    <control type="label" id="213">
                        <left>150</left>
                        <top>22</top>
                        <width>auto</width>
                        <height>18</height>
                        <font>font10</font>
                        <textcolor>FF666666</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">
                        <left>210</left>
                        <top>22</top>
                        <width>500</width>
                        <height>18</height>
                        <font>font10</font>
                        <textcolor>FF666666</textcolor>
                        <label>$INFO[Window.Property(WCS.Episode.Title)]</label>
                        <align>left</align>
                        <scroll>true</scroll>
                        <scrollsuffix>  •  </scrollsuffix>
                        <scrollspeed>30</scrollspeed>
                    </control>
                </control>
                
                <!-- Akční tlačítka (pill-shaped list) -->
                <control type="list" id="103">
                    <left>1300</left>
                    <top>4</top>
                    <width>500</width>
                    <height>36</height>
                    <orientation>horizontal</orientation>
                    <ondown>noop</ondown>
                    <onup>noop</onup>
                    <itemlayout height="36" width="110">
                        <control type="image">
                            <left>5</left>
                            <top>0</top>
                            <width>100</width>
                            <height>36</height>
                            <texture border="20" colordiffuse="10FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texture>
                        </control>
                        <control type="label">
                            <left>5</left>
                            <top>0</top>
                            <width>100</width>
                            <height>36</height>
                            <align>center</align>
                            <aligny>center</aligny>
                            <label>$INFO[ListItem.Label]</label>
                            <textcolor>88FFFFFF</textcolor>
                            <font>font10</font>
                        </control>
                    </itemlayout>
                    <focusedlayout height="36" width="110">
                        <control type="group">
                            <visible>!Control.HasFocus(103)</visible>
                            <control type="image">
                                <left>5</left>
                                <top>0</top>
                                <width>100</width>
                                <height>36</height>
                                <texture border="20" colordiffuse="10FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texture>
                            </control>
                            <control type="label">
                                <left>5</left>
                                <top>0</top>
                                <width>100</width>
                                <height>36</height>
                                <align>center</align>
                                <aligny>center</aligny>
                                <label>$INFO[ListItem.Label]</label>
                                <textcolor>88FFFFFF</textcolor>
                                <font>font10</font>
                            </control>
                        </control>
                        <control type="group">
                            <visible>Control.HasFocus(103)</visible>
                            <control type="image">
                                <left>5</left>
                                <top>0</top>
                                <width>100</width>
                                <height>36</height>
                                <texture border="20" colordiffuse="40FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_action_pill.png</texture>
                            </control>
                            <control type="label">
                                <left>5</left>
                                <top>0</top>
                                <width>100</width>
                                <height>36</height>
                                <align>center</align>
                                <aligny>center</aligny>
                                <label>$INFO[ListItem.Label]</label>
                                <textcolor>FFFFFFFF</textcolor>
                                <font>font10</font>
                            </control>
                        </control>
                    </focusedlayout>
                </control>
            </control>
        </control>
        
        <!-- Skryté sekce - musí existovat kvůli Python kódu -->
        <control type="group">
            <visible>false</visible>
            <control type="textbox" id="400"><left>-100</left><top>-100</top><width>1</width><height>1</height><pagecontrol>401</pagecontrol></control>
            <control type="scrollbar" id="401"><left>-100</left><top>-100</top><width>1</width><height>1</height><orientation>vertical</orientation></control>
            <control type="textbox" id="200"><left>-100</left><top>-100</top><width>1</width><height>1</height><pagecontrol>202</pagecontrol></control>
            <control type="textbox" id="201"><left>-100</left><top>-100</top><width>1</width><height>1</height><pagecontrol>202</pagecontrol></control>
            <control type="scrollbar" id="202"><left>-100</left><top>-100</top><width>1</width><height>1</height><orientation>vertical</orientation></control>
            <control type="button" id="301"><left>-100</left><top>-100</top><width>1</width><height>1</height></control>
            <control type="button" id="302"><left>-100</left><top>-100</top><width>1</width><height>1</height></control>
            <control type="button" id="303"><left>-100</left><top>-100</top><width>1</width><height>1</height></control>
            <control type="button" id="304"><left>-100</left><top>-100</top><width>1</width><height>1</height></control>
            <control type="button" id="501"><left>-100</left><top>-100</top><width>1</width><height>1</height></control>
            <control type="button" id="502"><left>-100</left><top>-100</top><width>1</width><height>1</height></control>
            <control type="button" id="503"><left>-100</left><top>-100</top><width>1</width><height>1</height></control>
        </control>
    </controls>
</window>