<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog">
    <defaultcontrol always="true">103</defaultcontrol>
    
    <!-- Animace - fade in/out (žádný slide, minimální rušení) -->
    <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: Ultra-tenký pruh nahoře s gradientem do ztracena    -->
        <!-- Apple TV style - téměř neviditelný, elegantní                -->
        <!-- ============================================================ -->
        <control type="group">
            <left>0</left>
            <top>0</top>
            <width>1920</width>
            <height>70</height>
            
            <!-- Tmavé pozadí - solid -->
            <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ů - rozpuštění do obrazu -->
            <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 - vše v jednom řádku         -->
            <!-- ======================================== -->
            <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.Autoplay.NextEpisode.Thumb)]</texture>
                    <aspectratio>scale</aspectratio>
                </control>
                
                <!-- Fallback -->
                <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.Autoplay.NextEpisode.Thumb))</visible>
                </control>
                
                <!-- Metadata - kompaktní inline -->
                <control type="group">
                    <left>85</left>
                    <top>0</top>
                    <width>1000</width>
                    <height>42</height>
                    
                    <!-- Název seriálu (bold) + Episode label -->
                    <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.Autoplay.SeriesTitle)]</label>
                        <align>left</align>
                        <scroll>true</scroll>
                        <scrollsuffix>  •  </scrollsuffix>
                        <scrollspeed>30</scrollspeed>
                    </control>
                    
                    <!-- Season/Episode -->
                    <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.Autoplay.NextEpisode.SeasonEpisode)]</label>
                        <align>left</align>
                    </control>
                    
                    <!-- Rating -->
                    <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.Autoplay.NextEpisode.RatingOnly)]</label>
                        <align>left</align>
                        <visible>!String.IsEmpty(Window.Property(WCS.Autoplay.NextEpisode.RatingOnly))</visible>
                    </control>
                    
                    <!-- Year -->
                    <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.Autoplay.NextEpisode.YearOnly)]</label>
                        <align>left</align>
                        <visible>!String.IsEmpty(Window.Property(WCS.Autoplay.NextEpisode.YearOnly))</visible>
                    </control>
                    
                    <!-- Episode title -->
                    <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.Autoplay.NextEpisode.Title)]</label>
                        <align>left</align>
                        <scroll>true</scroll>
                        <scrollsuffix>  •  </scrollsuffix>
                        <scrollspeed>30</scrollspeed>
                    </control>
                </control>
                
                <!-- Progress bar - tenký, inline -->
                <control type="progress" id="105">
                    <left>1100</left>
                    <top>18</top>
                    <width>400</width>
                    <height>4</height>
                    <texturebg colordiffuse="15FFFFFF">special://home/addons/plugin.video.milionar/resources/media/white.png</texturebg>
                    <lefttexture>-</lefttexture>
                    <midtexture colordiffuse="FFFFFFFF">special://home/addons/plugin.video.milionar/resources/media/white.png</midtexture>
                    <righttexture>-</righttexture>
                    <info>Window.Property(WCS.Autoplay.Progress)</info>
                </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>
        
        <!-- ============================================================ -->
        <!-- HERNÍ SEKCE - Skrytá v minimal stylu                         -->
        <!-- Controls musí existovat kvůli Python kódu                    -->
        <!-- ============================================================ -->
        <control type="group">
            <visible>false</visible>
            
            <control type="textbox" id="200">
                <left>-100</left>
                <top>-100</top>
                <width>1</width>
                <height>1</height>
                <pagecontrol>201</pagecontrol>
            </control>
            
            <control type="scrollbar" id="201">
                <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>
        
    </controls>
</window>