<?xml version="1.0" encoding="UTF-8"?>
<window>
    <onload condition="Skin.HasSetting(MilionarDefaultsV1)">SetProperty(milionar.logo.tint,$VAR[MilionarLogoTint],home)</onload>
    <onload condition="!Skin.HasSetting(MilionarDefaultsV1)">SetProperty(milionar.logo.tint,FFFFFFFF,home)</onload>
    <onload condition="Skin.HasSetting(MilionarDefaultsV1)">SetProperty(milionar.logo.wordmark,$VAR[MilionarWordmark],home)</onload>
    <onload condition="!Skin.HasSetting(MilionarDefaultsV1)">SetProperty(milionar.logo.wordmark,FFFFF5E5,home)</onload>

    <defaultcontrol>9004</defaultcontrol>
    <onload>SetProperty(WCS.AIChat.Title,MyTV - televize budoucnosti)</onload>
    <onload>SetProperty(WCS.AIChat.Status,Připraven)</onload>
    <!-- Default fanart fallback -->
    <onload>SetProperty(WCS.AIPreview.Fanart,special://home/addons/plugin.video.milionar/resources/media/fanart_fallback.jpg)</onload>
    
    <!-- Animace při otevření/zavření dialogu -->
    <animation effect="fade" start="0" end="100" time="400" tween="cubic" easing="out">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="300" tween="cubic" easing="in">WindowClose</animation>
    
    <controls>
        <!-- ==================================================================================== -->
        <!-- HERO ZONE - Full-width fanart with series info overlay -->
        <!-- ==================================================================================== -->
        
        <!-- Hero Fanart (full screen behind everything, from Python property) -->
        <control type="image">
            <left>0</left><top>0</top><width>1920</width><height>1080</height>
            <texture background="true" fallback="special://home/addons/plugin.video.milionar/resources/media/fanart_fallback.jpg">$INFO[Window.Property(WCS.MyTV.Hero.Fanart)]</texture>
            <aspectratio>scale</aspectratio>
            <fadetime>400</fadetime>
            <animation effect="zoom" start="100" end="103" center="960,300" time="15000" reversible="false" loop="true" pulse="true">Visible</animation>
        </control>
        
        <!-- Cinematic gradient (transparent top -> dark bottom for text readability) -->
        <control type="image">
            <left>0</left><top>0</top><width>1920</width><height>1243</height>
            <texture>special://home/addons/plugin.video.milionar/resources/media/gradient_cinematic_bottom.png</texture>
            <aspectratio>stretch</aspectratio>
            <!-- Slide up with hero info when plot is visible -->
            <animation effect="slide" start="0,0" end="0,-163" time="250" tween="cubic" easing="out" condition="Control.HasFocus(9042)">Conditional</animation>
        </control>
        
        <!-- Top gradient (dark top -> transparent, for header readability) -->
        <control type="image">
            <left>0</left><top>0</top><width>1920</width><height>300</height>
            <texture>special://home/addons/plugin.video.milionar/resources/media/gradient_top_header.png</texture>
            <aspectratio>stretch</aspectratio>
        </control>
        
        <!-- Hero Info Group (bottom-left of hero area) -->
        <control type="group">
            <left>72</left><top>505</top>
            <width>1200</width><height>400</height>
            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.Hero.SeriesName))</visible>
            <animation effect="fade" start="0" end="100" time="400" delay="100">Visible</animation>
            <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
            <!-- Slide up when hero is focused to make room for plot -->
            <animation effect="slide" start="0,0" end="0,-163" time="250" tween="cubic" easing="out" condition="Control.HasFocus(9042)">Conditional</animation>
            
            <!-- Series Logo -->
            <control type="image">
                <left>0</left><top>-15</top><width>300</width><height>100</height>
                <texture>$INFO[Window.Property(WCS.MyTV.Hero.SeriesLogo)]</texture>
                <aspectratio aligny="bottom">keep</aspectratio>
                <visible>!String.IsEmpty(Window.Property(WCS.MyTV.Hero.SeriesLogo))</visible>
            </control>
            
            <!-- Series Name (shown only when no logo) -->
            <control type="label">
                <left>0</left><top>10</top><width>900</width><height>65</height>
                <font>font_MainMenu</font>
                <label>$INFO[Window.Property(WCS.MyTV.Hero.SeriesName)]</label>
                <textcolor>FFFFFFFF</textcolor>
                <shadowcolor>80000000</shadowcolor>
                <scroll>true</scroll>
                <scrollspeed>40</scrollspeed>
                <visible>String.IsEmpty(Window.Property(WCS.MyTV.Hero.SeriesLogo))</visible>
            </control>
            
            <!-- Episode Code + Title -->
            <control type="label">
                <left>0</left><top>95</top><width>1100</width><height>55</height>
                <font>font45</font>
                <label>$INFO[Window.Property(WCS.MyTV.Hero.EpCode)]  $INFO[Window.Property(WCS.MyTV.Hero.EpTitle)]</label>
                <textcolor>F0FFFFFF</textcolor>
                <shadowcolor>DD000000</shadowcolor>
                <scroll>true</scroll>
                <scrollspeed>40</scrollspeed>
            </control>
            
            <!-- Metadata line (genre | runtime | rating) -->
            <control type="label">
                <left>0</left><top>155</top><width>900</width><height>30</height>
                <font>font13</font>
                <label>$INFO[Window.Property(WCS.MyTV.Hero.MetaLine)]</label>
                <textcolor>BBFFFFFF</textcolor>
                <shadowcolor>80000000</shadowcolor>
            </control>
            
            <!-- Plot (visible only when hero is focused, 5 lines) -->
            <control type="textbox">
                <left>0</left><top>195</top><width>800</width><height>160</height>
                <font>font13</font>
                <label>$INFO[Window.Property(WCS.MyTV.Hero.Plot)]</label>
                <textcolor>88FFFFFF</textcolor>
                <shadowcolor>60000000</shadowcolor>
                <visible>Control.HasFocus(9042)</visible>
                <animation effect="fade" start="0" end="100" time="300" delay="100">Visible</animation>
                <animation effect="fade" start="100" end="0" time="150">Hidden</animation>
            </control>
            
            <!-- Invisible focusable button covering hero area -->
            <control type="button" id="9042">
                <left>0</left><top>-30</top><width>1100</width><height>220</height>
                <texturefocus>-</texturefocus>
                <texturenofocus>-</texturenofocus>
                <label> </label>
                <onup>noop</onup>
                <ondown>noop</ondown>
                <onleft>noop</onleft>
                <onright>noop</onright>
                <!-- Subtle glow border on focus -->
                <animation effect="fade" start="0" end="0" time="1">Focus</animation>
            </control>
        </control>

        <!-- ==================================================================================== -->
        <!-- HEADER INFO (Title + Clock) - Always visible, top layer -->
        <!-- ==================================================================================== -->
        
        <!-- Left: Title + Stats -->
        <control type="group">
            <left>72</left><top>18</top>
            <width>1400</width><height>120</height>
            <animation effect="slide" start="0,-120" end="0,0" time="400" delay="100" tween="cubic" easing="out">WindowOpen</animation>
            <animation effect="slide" start="0,0" end="0,-120" time="250" tween="cubic" easing="in">WindowClose</animation>
            
            <!-- Title: MyTV - Channel Name (same font as clock) -->
            <control type="label">
                <left>0</left><top>0</top>
                <width>1300</width><height>80</height>
                <font>font_clock</font>
                <label>$INFO[Window.Property(WCS.AIChat.Title)]</label>
                <textcolor>F0FFFFFF</textcolor>
                <shadowcolor>40000000</shadowcolor>
            </control>
            
            <!-- Stats: X kanalu * Y serialu (same font as date) -->
            <control type="label">
                <left>0</left><top>80</top>
                <width>900</width><height>35</height>
                <font>font13</font>
                <label>$INFO[Window.Property(WCS.Channel.GlobalStats)]</label>
                <textcolor>60FFFFFF</textcolor>
                <visible>!String.IsEmpty(Window.Property(WCS.Channel.GlobalStats))</visible>
            </control>
        </control>
        
        <!-- Right: Clock + Date -->
        <control type="group">
            <left>1540</left><top>18</top>
            <width>340</width><height>120</height>
            <animation effect="fade" start="0" end="100" time="500" delay="300">WindowOpen</animation>
            <animation effect="fade" start="100" end="0" time="200">WindowClose</animation>
            
            <control type="label">
                <left>0</left><top>0</top><width>340</width><height>80</height>
                <font>font_clock</font>
                <label>$INFO[System.Time(hh:mm)]</label>
                <textcolor>E0FFFFFF</textcolor>
                <align>right</align>
            </control>
            <control type="label">
                <left>0</left><top>80</top><width>340</width><height>35</height>
                <font>font13</font>
                <label>$INFO[System.Date]</label>
                <textcolor>60FFFFFF</textcolor>
                <align>right</align>
            </control>
        </control>

        <!-- ==================================================================================== -->
        <!-- GRADIENT BACKGROUND - Exponentially faster scroll than content -->
        <!-- ==================================================================================== -->
        <control type="group">
            <left>0</left><top>620</top>
            <width>1920</width><height>5500</height>
            <!-- Gradient: transparent → #1C1C1E -->
            <control type="image">
                <left>0</left><top>0</top><width>1920</width><height>900</height>
                <texture>special://home/addons/plugin.video.milionar/resources/media/gradient_appletv_bottom.png</texture>
            </control>
            <!-- Solid dark below gradient -->
            <control type="image">
                <left>0</left><top>900</top><width>1920</width><height>4500</height>
                <texture colordiffuse="FF1C1C1E">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
            </control>
            <!-- Exponential slide: gradient moves 2.5-3x faster than content -->
            <animation effect="slide" start="0,0" end="0,-800" time="300" tween="sine" easing="inout" condition="Control.HasFocus(2000)">Conditional</animation>
            <animation effect="slide" start="0,0" end="0,-2000" time="300" tween="sine" easing="inout" condition="Control.HasFocus(9000) | String.IsEqual(Window.Property(WCS.MyTV.PlaySelection.ScrollLock),true)">Conditional</animation>
            <animation effect="slide" start="0,0" end="0,-3500" time="300" tween="sine" easing="inout" condition="Control.HasFocus(9060) | [!String.IsEmpty(Window.Property(WCS.MyTV.SeriesDetail.Active)) + !Control.HasFocus(2000) + !Control.HasFocus(9000)]">Conditional</animation>
        </control>

        <!-- ==================================================================================== -->
        <!-- SCROLLABLE CONTENT - Slides up/down based on focused row -->
        <!-- ==================================================================================== -->
        <control type="group">
            <left>0</left><top>720</top>
            <width>1920</width><height>1800</height>
            
            <!-- Scroll animations based on focused row -->
            <animation effect="slide" start="0,0" end="0,-330" time="300" tween="sine" easing="inout" condition="Control.HasFocus(2000)">Conditional</animation>
            <animation effect="slide" start="0,0" end="0,-820" time="300" tween="sine" easing="inout" condition="Control.HasFocus(9000) | String.IsEqual(Window.Property(WCS.MyTV.PlaySelection.ScrollLock),true)">Conditional</animation>
            <animation effect="slide" start="0,0" end="0,-1120" time="300" tween="sine" easing="inout" condition="Control.HasFocus(9060) | [!String.IsEmpty(Window.Property(WCS.MyTV.SeriesDetail.Active)) + !Control.HasFocus(2000) + !Control.HasFocus(9000)]">Conditional</animation>
            
            <!-- ============================================ -->
            <!-- ROW 0: ACTION BUTTONS -->
            <!-- ============================================ -->
            <control type="group">
                <left>72</left><top>0</top>
                <width>1776</width><height>80</height>
                <visible>!String.IsEqual(Container(2000).ListItem.Property(is_create_button),true)</visible>
                
                <control type="grouplist" id="9099">
                    <left>0</left><top>0</top>
                    <width>1300</width><height>70</height>
                    <itemgap>20</itemgap>
                    <orientation>horizontal</orientation>
                    <usecontrolcoords>true</usecontrolcoords>
                    <onup>noop</onup>
                    <ondown>2000</ondown>
                    
                    <!-- Live Broadcast (primary) -->
                    <control type="group">
                        <width>240</width><height>65</height>
                        <control type="button" id="9004">
                            <left>0</left><top>0</top>
                            <width>240</width><height>65</height>
                            <font>font14_bold</font>
                            <label>$INFO[Window.Property(WCS.Button.Play)]</label>
                            <align>center</align><aligny>center</aligny>
                            <textcolor>AAFFFFFF</textcolor>
                            <focusedcolor>FFFFFFFF</focusedcolor>
                            <onup>9042</onup>
                            <ondown>2000</ondown>
                            <onleft>noop</onleft>
                            <onright>9040</onright>
                            <texturefocus border="32" colordiffuse="CC2997FF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                            <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        </control>
                        <!-- Ring: subtle (nofocus) -->
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>240</width><height>65</height>
                            <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>!Control.HasFocus(9004)</visible>
                        </control>
                        <!-- Ring: bright (focus) -->
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>240</width><height>65</height>
                            <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>Control.HasFocus(9004)</visible>
                        </control>
                    </control>
                    
                    <!-- Play Episode -->
                    <control type="group">
                        <width>295</width><height>65</height>
                        <control type="button" id="9040">
                            <left>0</left><top>0</top>
                            <width>295</width><height>65</height>
                            <font>font14_bold</font>
                            <label>$INFO[Window.Property(WCS.Button.PlayEp)]</label>
                            <align>center</align><aligny>center</aligny>
                            <textcolor>AAFFFFFF</textcolor>
                            <focusedcolor>FFFFFFFF</focusedcolor>
                            <onup>9042</onup>
                            <ondown>2000</ondown>
                            <onleft>9004</onleft>
                            <onright>9041</onright>
                            <texturefocus border="32" colordiffuse="BB666666">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                            <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        </control>
                        <!-- Ring: subtle (nofocus) -->
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>295</width><height>65</height>
                            <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>!Control.HasFocus(9040)</visible>
                        </control>
                        <!-- Ring: bright (focus) -->
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>295</width><height>65</height>
                            <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>Control.HasFocus(9040)</visible>
                        </control>
                    </control>
                    
                    <!-- Play Series (hidden in cinema mode) -->
                    <control type="group">
                        <width>260</width><height>65</height>
                        <visible>!String.IsEqual(Window.Property(WCS.MediaType),cinema)</visible>
                        <control type="button" id="9041">
                            <left>0</left><top>0</top>
                            <width>260</width><height>65</height>
                            <font>font14_bold</font>
                            <label>$INFO[Window.Property(WCS.Button.PlaySeries)]</label>
                            <align>center</align><aligny>center</aligny>
                            <textcolor>AAFFFFFF</textcolor>
                            <focusedcolor>FFFFFFFF</focusedcolor>
                            <onup>9042</onup>
                            <ondown>2000</ondown>
                            <onleft>9040</onleft>
                            <onright>9043</onright>
                            <texturefocus border="32" colordiffuse="BB666666">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                            <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        </control>
                        <!-- Ring: subtle (nofocus) -->
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>260</width><height>65</height>
                            <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>!Control.HasFocus(9041)</visible>
                        </control>
                        <!-- Ring: bright (focus) -->
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>260</width><height>65</height>
                            <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>Control.HasFocus(9041)</visible>
                        </control>
                    </control>
                    
                    <!-- Milionář (episode mode) -->
                    <control type="group">
                        <width>190</width><height>65</height>
                        <control type="button" id="9043">
                            <left>0</left><top>0</top>
                            <width>190</width><height>65</height>
                            <font>font14_bold</font>
                            <label>Milionář</label>
                            <align>center</align><aligny>center</aligny>
                            <textcolor>AAFFFFFF</textcolor>
                            <focusedcolor>FFFFFFFF</focusedcolor>
                            <onup>9042</onup>
                            <ondown>2000</ondown>
                            <onleft>9041</onleft>
                            <onright>noop</onright>
                            <texturefocus border="32" colordiffuse="CCFFB800">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                            <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        </control>
                        <!-- Ring: subtle (nofocus) -->
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>190</width><height>65</height>
                            <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>!Control.HasFocus(9043)</visible>
                        </control>
                        <!-- Ring: bright (focus) -->
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>190</width><height>65</height>
                            <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>Control.HasFocus(9043)</visible>
                        </control>
                    </control>
                </control>
            </control>
            
            <!-- ============================================ -->
            <!-- ROW 1: CHANNELS - "Moje kanály" -->
            <!-- ============================================ -->
            <control type="group">
                <left>0</left><top>90</top>
                <width>1920</width><height>470</height>
                
                <!-- Row Header (normal) -->
                <control type="label">
                    <left>72</left><top>0</top>
                    <width>600</width><height>40</height>
                    <font>font30_title</font>
                    <label>$INFO[Window.Property(WCS.Row1.Label)]</label>
                    <textcolor>E0FFFFFF</textcolor>
                    <visible>String.IsEmpty(Window.Property(WCS.MyTV.ReorderMode))</visible>
                </control>
                
                <!-- Row Header (reorder mode) -->
                <control type="label">
                    <left>72</left><top>0</top>
                    <width>1600</width><height>40</height>
                    <font>font30_title</font>
                    <label>Vyberte kam chcete umístit kanál $INFO[Window.Property(WCS.MyTV.ReorderName)] a potvrďte OK</label>
                    <textcolor>FF2997FF</textcolor>
                    <visible>!String.IsEmpty(Window.Property(WCS.MyTV.ReorderMode))</visible>
                    <animation effect="fade" start="0" end="100" time="300">Visible</animation>
                </control>
                
                <!-- Channel List (horizontal) -->
                <control type="list" id="2000">
                    <left>60</left><top>75</top>
                    <width>1800</width><height>410</height>
                    <orientation>horizontal</orientation>
                    <onup>noop</onup>
                    <ondown>9000</ondown>
                    <onleft>noop</onleft>
                    <onright>noop</onright>
                    <scrolltime tween="cubic" easing="out">300</scrolltime>
                    
                    <!-- ITEM LAYOUT: Channel poster card (200x300 poster + label) -->
                    <itemlayout width="230">
                        <!-- Poster -->
                        <control type="image">
                            <left>10</left><top>10</top>
                            <width>210</width><height>315</height>
                            <texture fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_tv_card.jpg" diffuse="special://home/addons/plugin.video.milionar/resources/media/card_mask.png">$INFO[ListItem.Art(poster)]</texture>
                            <aspectratio>scale</aspectratio>
                        </control>
                        <!-- Channel name -->
                        <control type="label">
                            <left>10</left><top>345</top>
                            <width>210</width><height>30</height>
                            <font>font12</font>
                            <label>$INFO[ListItem.Label]</label>
                            <textcolor>80FFFFFF</textcolor>
                            <align>center</align>
                            <scroll>false</scroll>
                        </control>
                    </itemlayout>
                    
                    <!-- FOCUSED LAYOUT: Zoom + brighter -->
                    <focusedlayout width="230">
                        <!-- Poster with zoom -->
                        <control type="image">
                            <left>10</left><top>10</top>
                            <width>210</width><height>315</height>
                            <texture fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_tv_card.jpg" diffuse="special://home/addons/plugin.video.milionar/resources/media/card_mask.png">$INFO[ListItem.Art(poster)]</texture>
                            <aspectratio>scale</aspectratio>
                            <animation effect="zoom" start="100" end="115" center="auto" time="250" tween="cubic" easing="out">Focus</animation>
                            <animation effect="zoom" start="115" end="100" center="auto" time="200" tween="cubic" easing="in">UnFocus</animation>
                        </control>
                        <!-- Channel name - brighter on focus -->
                        <control type="label">
                            <left>10</left><top>345</top>
                            <width>210</width><height>30</height>
                            <font>font12</font>
                            <label>$INFO[ListItem.Label]</label>
                            <textcolor>EEFFFFFF</textcolor>
                            <align>center</align>
                            <scroll>true</scroll>
                            <scrollspeed>40</scrollspeed>
                            <animation effect="slide" start="0,0" end="0,25" time="250" tween="cubic" easing="out">Focus</animation>
                            <animation effect="slide" start="0,25" end="0,0" time="200" tween="cubic" easing="in">UnFocus</animation>
                        </control>
                        <!-- Reorder mode: dashed blue border indicator -->
                        <control type="image">
                            <left>2</left><top>2</top>
                            <width>226</width><height>331</height>
                            <texture>special://home/addons/plugin.video.milionar/resources/media/card_border.png</texture>
                            <colordiffuse>FF2997FF</colordiffuse>
                            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.ReorderMode))</visible>
                            <animation effect="zoom" start="100" end="115" center="auto" time="250" tween="cubic" easing="out">Focus</animation>
                            <animation effect="zoom" start="115" end="100" center="auto" time="200" tween="cubic" easing="in">UnFocus</animation>
                        </control>
                    </focusedlayout>
                </control>
            </control>
            
            <!-- ============================================ -->
            <!-- ROW 2: PROGRAM - "Program · Název kanálu" -->
            <!-- ============================================ -->
            <control type="group">
                <left>0</left><top>580</top>
                <width>1920</width><height>300</height>
                <visible>!String.IsEqual(Container(2000).ListItem.Property(is_create_button),true)</visible>
                
                <!-- Row Header (normal) -->
                <control type="label">
                    <left>72</left><top>0</top>
                    <width>900</width><height>40</height>
                    <font>font30_title</font>
                    <label>Program  ·  $INFO[Container(2000).ListItem.Label]</label>
                    <textcolor>E0FFFFFF</textcolor>
                    <visible>String.IsEmpty(Window.Property(WCS.MyTV.ProgramReorderMode))</visible>
                </control>
                
                <!-- Row Header (program reorder mode) -->
                <control type="label">
                    <left>72</left><top>0</top>
                    <width>1600</width><height>40</height>
                    <font>font30_title</font>
                    <label>Vyberte kam chcete umístit $INFO[Window.Property(WCS.MyTV.ProgramReorderName)] a potvrďte OK</label>
                    <textcolor>FF2997FF</textcolor>
                    <visible>!String.IsEmpty(Window.Property(WCS.MyTV.ProgramReorderMode))</visible>
                    <animation effect="fade" start="0" end="100" time="300">Visible</animation>
                </control>
                
                <!-- Program List (horizontal, 16:9 cards with stills) -->
                <control type="list" id="9000">
                    <left>60</left><top>75</top>
                    <width>1800</width><height>270</height>
                    <orientation>horizontal</orientation>
                    <onup>2000</onup>
                    <ondown>9060</ondown>
                    <onleft>noop</onleft>
                    <onright>noop</onright>
                    <scrolltime tween="cubic" easing="out">300</scrolltime>
                    <visible>!String.IsEqual(Window.Property(WCS.MyTV.PlaySelection),true)</visible>
                    
                    <!-- ITEM LAYOUT: Episode card (16:9 still + info) -->
                    <itemlayout width="310">
                        <!-- Episode Still (16:9) -->
                        <control type="image">
                            <left>10</left><top>5</top>
                            <width>290</width><height>163</height>
                            <texture fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_tv_card.jpg" diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png">$INFO[ListItem.Art(thumb)]</texture>
                            <aspectratio>scale</aspectratio>
                        </control>
                        <!-- Series Logo (bottom of still, centered) -->
                        <control type="image">
                            <left>10</left><top>115</top>
                            <width>290</width><height>48</height>
                            <texture>$INFO[ListItem.Property(series_logo)]</texture>
                            <aspectratio align="center" aligny="bottom">keep</aspectratio>
                            <visible>!String.IsEmpty(ListItem.Property(series_logo))</visible>
                        </control>
                        <!-- Watched indicator -->
                        <control type="label">
                            <left>10</left><top>146</top>
                            <width>290</width><height>22</height>
                            <font>font10</font>
                            <label>watched</label>
                            <textcolor>FFFFFFFF</textcolor>
                            <align>right</align>
                            <visible>String.IsEqual(ListItem.Property(watched),true)</visible>
                        </control>
                        <!-- Resume progress bar -->
                        <control type="image">
                            <left>25</left><top>155</top>
                            <width>260</width><height>4</height>
                            <texture border="2" colordiffuse="40FFFFFF">special://home/addons/plugin.video.milionar/resources/media/progress_pill.png</texture>
                            <visible>String.IsEqual(ListItem.Property(is_resume),true)</visible>
                        </control>
                        <control type="image">
                            <left>25</left><top>155</top>
                            <width>$INFO[ListItem.Property(resume_width)]</width><height>4</height>
                            <texture border="2" colordiffuse="FF2997FF">special://home/addons/plugin.video.milionar/resources/media/progress_pill.png</texture>
                            <visible>String.IsEqual(ListItem.Property(is_resume),true)</visible>
                        </control>
                        <!-- Episode code -->
                        <control type="label">
                            <left>12</left><top>172</top>
                            <width>286</width><height>22</height>
                            <font>font10</font>
                            <label>$INFO[ListItem.Property(ep_code)]</label>
                            <textcolor>60AACCFF</textcolor>
                        </control>
                        <!-- Episode title -->
                        <control type="label">
                            <left>12</left><top>197</top>
                            <width>286</width><height>30</height>
                            <font>font12</font>
                            <label>$INFO[ListItem.Property(episode_title)]</label>
                            <textcolor>80FFFFFF</textcolor>
                            <scroll>false</scroll>
                        </control>
                    </itemlayout>
                    
                    <!-- FOCUSED LAYOUT: Zoom + brighter text -->
                    <focusedlayout width="310">
                        <control type="group">
                            <left>0</left><top>0</top>
                            <width>310</width><height>170</height>
                            <animation effect="zoom" start="100" end="115" center="155,86" time="250" tween="cubic" easing="out">Focus</animation>
                            <animation effect="zoom" start="115" end="100" center="155,86" time="200" tween="cubic" easing="in">UnFocus</animation>
                            <!-- Episode Still (16:9) -->
                            <control type="image">
                                <left>10</left><top>5</top>
                                <width>290</width><height>163</height>
                                <texture fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_tv_card.jpg" diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio>scale</aspectratio>
                            </control>
                            <!-- Series Logo (bottom of still, centered) -->
                            <control type="image">
                                <left>10</left><top>115</top>
                                <width>290</width><height>48</height>
                                <texture>$INFO[ListItem.Property(series_logo)]</texture>
                                <aspectratio align="center" aligny="bottom">keep</aspectratio>
                                <visible>!String.IsEmpty(ListItem.Property(series_logo))</visible>
                            </control>
                            <!-- Watched indicator -->
                            <control type="label">
                                <left>10</left><top>146</top>
                                <width>290</width><height>22</height>
                                <font>font10</font>
                                <label>watched</label>
                                <textcolor>FFFFFFFF</textcolor>
                                <align>right</align>
                                <visible>String.IsEqual(ListItem.Property(watched),true)</visible>
                            </control>
                            <!-- Resume progress bar -->
                            <control type="image">
                                <left>25</left><top>155</top>
                                <width>260</width><height>4</height>
                                <texture border="2" colordiffuse="40FFFFFF">special://home/addons/plugin.video.milionar/resources/media/progress_pill.png</texture>
                                <visible>String.IsEqual(ListItem.Property(is_resume),true)</visible>
                            </control>
                            <control type="image">
                                <left>25</left><top>155</top>
                                <width>$INFO[ListItem.Property(resume_width)]</width><height>4</height>
                                <texture border="2" colordiffuse="FF2997FF">special://home/addons/plugin.video.milionar/resources/media/progress_pill.png</texture>
                                <visible>String.IsEqual(ListItem.Property(is_resume),true)</visible>
                            </control>
                        </control>
                        <!-- Episode code -->
                        <control type="label">
                            <left>12</left><top>172</top>
                            <width>286</width><height>22</height>
                            <font>font10</font>
                            <label>$INFO[ListItem.Property(ep_code)]</label>
                            <textcolor>CCAACCFF</textcolor>
                            <animation effect="slide" start="0,0" end="0,25" time="250" tween="cubic" easing="out">Focus</animation>
                            <animation effect="slide" start="0,25" end="0,0" time="200" tween="cubic" easing="in">UnFocus</animation>
                        </control>
                        <!-- Episode title -->
                        <control type="label">
                            <left>12</left><top>197</top>
                            <width>286</width><height>30</height>
                            <font>font12</font>
                            <label>$INFO[ListItem.Property(episode_title)]</label>
                            <textcolor>EEFFFFFF</textcolor>
                            <scroll>true</scroll>
                            <scrollspeed>30</scrollspeed>
                            <animation effect="slide" start="0,0" end="0,25" time="250" tween="cubic" easing="out">Focus</animation>
                            <animation effect="slide" start="0,25" end="0,0" time="200" tween="cubic" easing="in">UnFocus</animation>
                        </control>
                        <!-- Program reorder mode: solid blue border indicator -->
                        <control type="image">
                            <left>2</left><top>2</top>
                            <width>306</width><height>258</height>
                            <texture>special://home/addons/plugin.video.milionar/resources/media/card_border_program.png</texture>
                            <colordiffuse>FF2997FF</colordiffuse>
                            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.ProgramReorderMode))</visible>
                            <animation effect="zoom" start="100" end="115" center="auto" time="250" tween="cubic" easing="out">Focus</animation>
                            <animation effect="zoom" start="115" end="100" center="auto" time="200" tween="cubic" easing="in">UnFocus</animation>
                        </control>
                    </focusedlayout>
                </control>
            </control>
            
            <!-- ============================================ -->
            <!-- ROW 3: MOJE SERIALY -->
            <!-- ============================================ -->
            <control type="group">
                <left>0</left><top>926</top>
                <width>1920</width><height>400</height>
                
                <!-- Row Header (dynamic count) -->
                <control type="label">
                    <left>72</left><top>0</top>
                    <width>800</width><height>40</height>
                    <font>font30_title</font>
                    <label>$INFO[Window.Property(WCS.Row3.Label)]</label>
                    <textcolor>E0FFFFFF</textcolor>
                </control>
                
                <!-- My Series List (horizontal, populated from Python) -->
                <control type="list" id="9060">
                    <left>60</left><top>75</top>
                    <width>1800</width><height>340</height>
                    <orientation>horizontal</orientation>
                    <onup>9000</onup>
                    <ondown>noop</ondown>
                    <onleft>noop</onleft>
                    <onright>noop</onright>
                    <scrolltime>300</scrolltime>
                    <pagecontrol>0</pagecontrol>
                    <itemlayout width="230" height="330">
                        <control type="image">
                            <left>16</left><top>6</top><width>198</width><height>297</height>
                            <texture fallback="special://home/addons/plugin.video.milionar/resources/media/poster_placeholder.png" diffuse="special://home/addons/plugin.video.milionar/resources/media/card_mask.png" background="true">$INFO[ListItem.Art(poster)]</texture>
                            <aspectratio>scale</aspectratio>
                        </control>
                        <control type="label">
                            <left>16</left><top>308</top><width>198</width><height>36</height>
                            <font>font12</font>
                            <label>$INFO[ListItem.Label]</label>
                            <textcolor>AAFFFFFF</textcolor>
                            <align>center</align>
                            <scroll>false</scroll>
                        </control>
                    </itemlayout>
                    <focusedlayout width="230" height="330">
                        <control type="image">
                            <left>16</left><top>6</top><width>198</width><height>297</height>
                            <texture fallback="special://home/addons/plugin.video.milionar/resources/media/poster_placeholder.png" diffuse="special://home/addons/plugin.video.milionar/resources/media/card_mask.png" background="true">$INFO[ListItem.Art(poster)]</texture>
                            <aspectratio>scale</aspectratio>
                            <animation effect="zoom" start="100" end="128" center="auto" time="200">Focus</animation>
                            <animation effect="zoom" start="128" end="100" center="auto" time="200">UnFocus</animation>
                        </control>
                        <control type="label">
                            <left>16</left><top>308</top><width>198</width><height>36</height>
                            <font>font12</font>
                            <label>$INFO[ListItem.Label]</label>
                            <textcolor>FFFFFFFF</textcolor>
                            <align>center</align>
                            <scroll>true</scroll>
                            <scrollspeed>40</scrollspeed>
                            <animation effect="slide" start="0,0" end="0,40" time="200">Focus</animation>
                            <animation effect="slide" start="0,40" end="0,0" time="200">UnFocus</animation>
                        </control>
                    </focusedlayout>
                </control>
            </control>

        </control>

        <!-- ==================================================================================== -->
        <!-- NAVIGATION SIDEBAR (Left Side) -->
        <!-- ==================================================================================== -->
        <control type="group" id="7000">
            <visible>Control.HasFocus(7100) | Control.HasFocus(7200) | !String.IsEmpty(Window.Property(WCS.NavSidebar.Visible))</visible>
            <animation effect="slide" start="-450,0" end="0,0" time="300" tween="cubic" easing="out" condition="String.IsEmpty(Window.Property(WCS.NavSidebar.NoAnimation))">Visible</animation>
            <animation effect="slide" end="-450,0" start="0,0" time="300" tween="cubic" easing="in" condition="String.IsEmpty(Window.Property(WCS.NavSidebar.NoAnimation))">Hidden</animation>
            
            <!-- Background Panel -->
            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>450</width>
                <height>1080</height>
                <texture colordiffuse="F2101010">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
            </control>
            
            <!-- Gradient Edge (Right side of sidebar) -->
            <control type="image">
                <left>440</left>
                <top>0</top>
                <width>30</width>
                <height>1080</height>
                <texture colordiffuse="80000000">special://home/addons/plugin.video.milionar/resources/media/gradient_right.png</texture>
            </control>
            
            <!-- Header Title -->
            <control type="group">
                <left>0</left><top>0</top><width>450</width><height>150</height>
                <control type="image">
                    <left>0</left><top>0</top><width>450</width><height>150</height>
                    <texture colordiffuse="FF101010">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                </control>
                <control type="image">
                    <left>69</left><top>39</top><width>72</width><height>72</height>
                    <aspectratio>keep</aspectratio>
                    <texture colordiffuse="$INFO[Window(Home).Property(milionar.logo.tint)]">special://home/addons/plugin.video.milionar/resources/media/brand/milionar-mark.png</texture>
                </control>
                <control type="label">
                    <left>153</left><top>31</top><width>228</width><height>88</height>
                    <font>font32_milionar_brand</font><aligny>center</aligny>
                    <textcolor>$INFO[Window(Home).Property(milionar.logo.wordmark)]</textcolor>
                    <label>MILIONÁŘ</label>
                    <visible>Skin.HasSetting(MilionarDefaultsV1)</visible>
                </control>
                <control type="label">
                    <left>153</left><top>31</top><width>228</width><height>88</height>
                    <font>font32_title</font><aligny>center</aligny>
                    <textcolor>$INFO[Window(Home).Property(milionar.logo.wordmark)]</textcolor>
                    <label>MILIONÁŘ</label>
                    <visible>!Skin.HasSetting(MilionarDefaultsV1)</visible>
                </control>
            </control>

            <!-- Horizontal Icon Bar -->
            <control type="list" id="7200">
                <left>30</left>
                <top>155</top>
                <width>390</width>
                <height>90</height>
                <onleft>noop</onleft>
                <onright>2000</onright>
                <onup>noop</onup>
                <ondown>7100</ondown>
                <orientation>horizontal</orientation>
                
                <itemlayout width="130" height="90">
                    <control type="image">
                        <left>30</left>
                        <top>10</top>
                        <width>70</width>
                        <height>70</height>
                        <texture>$INFO[ListItem.Icon]</texture>
                        <colordiffuse>grey</colordiffuse>
                        <aspectratio>keep</aspectratio>
                    </control>
                </itemlayout>
                
                <focusedlayout width="130" height="90">
                    <control type="image">
                        <left>15</left>
                        <top>5</top>
                        <width>100</width>
                        <height>80</height>
                        <texture colordiffuse="FF0090EA">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                        <visible>Control.HasFocus(7200)</visible>
                    </control>
                    <control type="image">
                        <left>30</left>
                        <top>10</top>
                        <width>70</width>
                        <height>70</height>
                        <texture>$INFO[ListItem.Icon]</texture>
                        <colordiffuse>white</colordiffuse>
                        <aspectratio>keep</aspectratio>
                        <visible>Control.HasFocus(7200)</visible>
                    </control>
                    <control type="image">
                        <left>30</left>
                        <top>10</top>
                        <width>70</width>
                        <height>70</height>
                        <texture>$INFO[ListItem.Icon]</texture>
                        <colordiffuse>grey</colordiffuse>
                        <aspectratio>keep</aspectratio>
                        <visible>!Control.HasFocus(7200)</visible>
                    </control>
                </focusedlayout>
            </control>
            
            <!-- Navigation Menu List -->
            <control type="list" id="7100">
                <left>0</left>
                <top>250</top>
                <width>450</width>
                <height>830</height>

                <orientation>vertical</orientation>
                <scrolltime tween="cubic" easing="out">200</scrolltime>
                
                <itemlayout height="100" width="450">
                    <control type="group">
                        <control type="image">
                            <left>30</left>
                            <top>15</top>
                            <width>70</width>
                            <height>70</height>
                            <texture>$INFO[ListItem.Icon]</texture>
                            <aspectratio>keep</aspectratio>
                            <colordiffuse>grey</colordiffuse>
                        </control>
                        <control type="label">
                            <left>120</left>
                            <top>0</top>
                            <width>310</width>
                            <height>100</height>
                            <font>font30</font>
                            <label>$INFO[ListItem.Label]</label>
                            <textcolor>white</textcolor>
                            <aligny>center</aligny>
                        </control>
                    </control>
                </itemlayout>
                
                <focusedlayout height="100" width="450">
                    <control type="group">
                        <control type="image">
                            <left>0</left>
                            <top>0</top>
                            <width>450</width>
                            <height>100</height>
                            <texture colordiffuse="FF0090EA">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                            <visible>Control.HasFocus(7100)</visible>
                        </control>
                        <control type="image">
                            <left>0</left>
                            <top>0</top>
                            <width>5</width>
                            <height>100</height>
                            <texture colordiffuse="FFFFFFFF">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                            <visible>Control.HasFocus(7100)</visible>
                        </control>
                        <control type="image">
                            <left>30</left>
                            <top>15</top>
                            <width>70</width>
                            <height>70</height>
                            <texture>$INFO[ListItem.Icon]</texture>
                            <aspectratio>keep</aspectratio>
                            <colordiffuse>white</colordiffuse>
                            <visible>Control.HasFocus(7100)</visible>
                        </control>
                        <control type="image">
                            <left>30</left>
                            <top>15</top>
                            <width>70</width>
                            <height>70</height>
                            <texture>$INFO[ListItem.Icon]</texture>
                            <aspectratio>keep</aspectratio>
                            <colordiffuse>grey</colordiffuse>
                            <visible>!Control.HasFocus(7100)</visible>
                        </control>
                        <control type="label">
                            <left>120</left>
                            <top>0</top>
                            <width>310</width>
                            <height>100</height>
                            <font>font30</font>
                            <label>$INFO[ListItem.Label]</label>
                            <textcolor>white</textcolor>
                            <shadowcolor>black</shadowcolor>
                            <aligny>center</aligny>
                            <visible>Control.HasFocus(7100)</visible>
                        </control>
                        <control type="label">
                            <left>120</left>
                            <top>0</top>
                            <width>310</width>
                            <height>100</height>
                            <font>font30</font>
                            <label>$INFO[ListItem.Label]</label>
                            <textcolor>grey</textcolor>
                            <aligny>center</aligny>
                            <visible>!Control.HasFocus(7100)</visible>
                        </control>
                    </control>
                </focusedlayout>
            </control>
        </control>
        
        <!-- Subtle Hint to open nav sidebar if hidden (Left Edge) -->
        <control type="group">
            <visible>String.IsEmpty(Window.Property(WCS.NavSidebar.Visible)) + !Control.HasFocus(7100)</visible>
            <left>0</left>
            <top>500</top>
            <control type="image">
                 <width>50</width>
                 <height>100</height>
                 <texture>common/arrow_right.png</texture>
                 <colordiffuse>40FFFFFF</colordiffuse>
            </control>
        </control>

        <!-- ==================================================================================== -->
        <!-- CHAT OVERLAY LAYER (Top Right/Float) - Copied from DialogAIChatRecommendation.xml -->
        <!-- ==================================================================================== -->
        <!-- Main Chat Group - Visible only when interacting with chat or toggled -->
        <control type="group" id="5000">
            <!-- Visibility Logic: Visible if Chat items focused OR Property WCS.AIChat.Visible is true -->
            <visible>Control.HasFocus(4000) | Control.HasFocus(3000) | Control.HasFocus(3001) | !String.IsEmpty(Window.Property(WCS.AIChat.Visible))</visible>
            <animation effect="slide" start="500,0" end="0,0" time="300" tween="cubic" easing="out">Visible</animation>
            <animation effect="slide" end="500,0" start="0,0" time="300" tween="cubic" easing="in">Hidden</animation>

            <!-- Background Panel for Chat -->
            <control type="image">
                <left>1320</left> <!-- Right side panel -->
                <top>0</top>
                <width>600</width>
                <height>1080</height>
                <texture colordiffuse="F2101010">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
            </control>
            
            <control type="label">
                <left>1350</left>
                <top>40</top>
                <width>540</width>
                <height>40</height>
                <font>font30_title</font>
                <label>AI Asistent</label>
                <textcolor>button_focus</textcolor>
            </control>
            
            <!-- Thinking Indicator (Visible when AI is working) -->
            <control type="group" id="5001">
                <left>1350</left>
                <top>72</top>
                <width>540</width>
                <height>20</height>
                
                <control type="label">
                     <left>0</left>
                     <width>300</width>
                     <height>20</height>
                     <font>font12</font>
                     <label>$INFO[Window.Property(WCS.AIChat.StatusText)]</label>
                     <textcolor>grey</textcolor>
                     <align>left</align>
                </control>
                
                <control type="label">
                     <left>0</left>
                     <width>510</width>
                     <height>20</height>
                     <font>font12</font>
                     <label>$INFO[Window.Property(WCS.AIChat.Timer)]</label>
                     <textcolor>button_focus</textcolor>
                     <align>right</align>
                </control>
            </control>
            
            <!-- Chat History -->
            <control type="textbox" id="1000">
                <left>1350</left>
                <top>115</top>
                <width>510</width>
                <height>385</height>
                <font>font13</font>
                <textcolor>white</textcolor>
                <pagecontrol>1001</pagecontrol>
                <autoscroll>false</autoscroll>
            </control>

            <!-- Focusable Transparent Button over History (Trigger Debug) -->
            <control type="button" id="1002">
                <left>1350</left>
                <top>115</top>
                <width>510</width>
                <height>385</height>
                <texturefocus border="25" colordiffuse="40FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded.png</texturefocus>
                <texturenofocus></texturenofocus>
                <onleft>2000</onleft>
                <onright>1001</onright>
                <ondown>4000</ondown>
                <onup>noop</onup>
                <visible>Control.IsVisible(5000)</visible>
            </control>

            <!-- Scrollbar -->
            <control type="scrollbar" id="1001">
                <left>1870</left>
                <top>115</top>
                <width>20</width>
                <height>400</height>
                <onleft>1002</onleft>
                <ondown>4000</ondown>
                <texturesliderbackground border="2" colordiffuse="10FFFFFF">special://home/addons/plugin.video.milionar/resources/media/white.png</texturesliderbackground>
                <texturesliderbar border="2" colordiffuse="60FFFFFF">special://home/addons/plugin.video.milionar/resources/media/white.png</texturesliderbar>
                <texturesliderbarfocus border="2" colordiffuse="FFFFFFFF">special://home/addons/plugin.video.milionar/resources/media/white.png</texturesliderbarfocus>
                <textureslidernib colordiffuse="00FFFFFF"></textureslidernib>
                <textureslidernibfocus colordiffuse="00FFFFFF"></textureslidernibfocus>
                <showonepage>false</showonepage>
                <orientation>vertical</orientation>
            </control>
            
            <!-- Quick Options / Buttons -->
            <control type="list" id="4000">
                <visible>String.IsEmpty(Window.Property(WCS.AIChat.IsLoadingButtons))</visible>
                <animation effect="slide" end="-100,0" time="200" tween="back" easing="in">Hidden</animation>
                <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
                <animation effect="slide" start="100,0" end="0,0" time="300" tween="cubic" easing="out">Visible</animation>
                <animation effect="fade" start="0" end="100" time="300">Visible</animation>

                <left>1350</left>
                <top>530</top>
                <width>540</width>
                <height>450</height>
                <onup>4001</onup> <!-- Safe close via hidden button -->
                <ondown>3000</ondown> <!-- Down to Input Field -->
                <onleft>2000</onleft> <!-- Left to content -->
                <itemlayout height="50" width="540">
                    <control type="label">
                        <left>10</left>
                        <label>* $INFO[ListItem.Label]</label>
                        <textcolor>grey</textcolor>
                    </control>
                </itemlayout>
                <focusedlayout height="50" width="540">
                    <control type="image">
                        <width>540</width>
                        <height>50</height>
                         <texture border="20" colordiffuse="20FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded.png</texture>
                    </control>
                     <control type="label">
                        <left>10</left>
                        <label>* $INFO[ListItem.Label]</label>
                        <textcolor>white</textcolor>
                    </control>
                </focusedlayout>
            </control>

            <!-- Hidden Button for Safe Sidebar Close (UP Action) -->
            <control type="button" id="4001">
                <left>-100</left>
                <top>-100</top>
                <width>1</width>
                <height>1</height>
                <onup>noop</onup>
                <ondown>4000</ondown>
                <onleft>2000</onleft>
                <onright>noop</onright>
            </control>
            
            <!-- Matrix Loading Group (Visible when processing buttons) -->
            <control type="group" id="5500">
                <visible>!String.IsEmpty(Window.Property(WCS.AIChat.IsLoadingButtons))</visible>
                <animation effect="zoom" start="90" end="100" center="auto" time="200">Visible</animation>
                <animation effect="fade" start="0" end="100" time="200">Visible</animation>
                <left>1350</left>
                <top>530</top>
                <width>540</width>
                <height>450</height>
                
                <!-- Glitch Text (Dissolving Button) -->
                <control type="label">
                    <left>0</left>
                    <top>150</top>
                    <width>540</width>
                    <height>50</height>
                    <font>font30_title</font>
                    <label>$INFO[Window.Property(WCS.AIChat.GlitchText)]</label>
                    <textcolor>button_focus</textcolor>
                    <align>center</align>
                    <aligny>center</aligny>
                </control>
                <!-- FUN STATUS (Center) -->
                <control type="label">
                    <left>0</left>
                    <top>210</top>
                    <width>540</width>
                    <height>30</height>
                    <font>font12</font>
                    <label>--- $INFO[Window.Property(WCS.AIChat.FunStatus)] ---</label>
                    <textcolor>grey</textcolor>
                    <align>center</align>
                </control>
                
                <!-- PROVIDER (Left - Cyan) -->
                <control type="label">
                    <left>20</left>
                    <top>15</top>
                    <width>260</width>
                    <height>25</height>
                    <font>font10</font>
                    <label>$INFO[Window.Property(WCS.AIChat.Provider)]</label>
                    <textcolor>0xFF00FFFF</textcolor>
                    <align>left</align>
                </control>
                
                <!-- MODEL (Right - Orange) -->
                <control type="label">
                    <left>280</left>
                    <top>15</top>
                    <width>250</width>
                    <height>25</height>
                    <font>font10</font>
                    <label>$INFO[Window.Property(WCS.AIChat.Model)]</label>
                    <textcolor>0xFFFFA500</textcolor>
                    <align>right</align>
                </control>
                
                <!-- Dummy Hidden Button to Trap Focus -->
                <control type="button" id="5501">
                    <left>-100</left>
                    <top>-100</top>
                    <width>1</width>
                    <height>1</height>
                    <texturefocus></texturefocus>
                    <texturenofocus></texturenofocus>
                    <onup>noop</onup>
                    <ondown>noop</ondown>
                    <onleft>noop</onleft>
                    <onright>noop</onright>
                    <onclick>noop</onclick>
                </control>
            </control>
            
            <!-- Input Field -->
            <control type="edit" id="3000">
                <left>1350</left>
                <top>1000</top>
                <width>430</width>
                <height>50</height>
                <font>font13</font>
                <ondown>noop</ondown>
                <onup>4000</onup>
                <onright>3001</onright>
                <label>Zeptej se AI...</label>
                <texturefocus border="25" colordiffuse="40FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded.png</texturefocus>
                <texturenofocus border="25" colordiffuse="20FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded.png</texturenofocus>
            </control>
            
            <!-- Send Button -->
            <control type="button" id="3001">
                <left>1790</left>
                <top>1000</top>
                <width>100</width>
                <height>50</height>
                <label>Send</label>
                <font>font12</font>
                <textcolor>FFFFFFFF</textcolor>
                <focusedcolor>FF00AAFF</focusedcolor>
                <align>center</align>
                <aligny>center</aligny>
                <texturefocus border="25" colordiffuse="60FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded.png</texturefocus>
                <texturenofocus border="25" colordiffuse="20FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded.png</texturenofocus>
                <onleft>3000</onleft>
                <ondown>4000</ondown>
            </control>
        </control>
        
        <!-- Subtle Hint to open chat if hidden -->
        <control type="group">
            <visible>![Control.HasFocus(4000) | Control.HasFocus(3000) | Control.HasFocus(3001) | !String.IsEmpty(Window.Property(WCS.AIChat.Visible))]</visible>
            <left>1850</left>
            <top>500</top>
            <control type="image">
                 <width>50</width>
                 <height>100</height>
                 <texture flipx="true">common/arrow_right.png</texture>
                 <colordiffuse>80FFFFFF</colordiffuse>
            </control>
        </control>

        <!-- ==================================================================================== -->
        <!-- SERIES GRID SUB-DIALOG - Apple TV: overlay for managing series in channel -->
        <!-- ==================================================================================== -->
        
        <!-- Dim overlay for series grid -->
        <control type="group">
            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.SeriesGrid))</visible>
            <animation effect="fade" start="0" end="100" time="250">Visible</animation>
            <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>1920</width>
                <height>1080</height>
                <texture colordiffuse="70000000">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
            </control>
        </control>
        
        <!-- Series Grid Panel -->
        <control type="group">
            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.SeriesGrid))</visible>
            <animation effect="zoom" start="90" end="100" center="auto" time="300" tween="cubic" easing="out">Visible</animation>
            <animation effect="fade" start="0" end="100" time="250">Visible</animation>
            <animation effect="zoom" start="100" end="90" center="auto" time="250" tween="cubic" easing="in">Hidden</animation>
            <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
            
            <!-- Background panel -->
            <control type="group">
                <left>160</left>
                <top>180</top>
                <width>1600</width>
                <height>720</height>
                
                <!-- Panel background -->
                <control type="image">
                    <left>0</left>
                    <top>0</top>
                    <width>1600</width>
                    <height>720</height>
                    <texture border="34">special://home/addons/plugin.video.milionar/resources/media/dialog_rounded_large.png</texture>
                    <colordiffuse>F01A1A1A</colordiffuse>
                </control>
                
                <!-- Title: channel name -->
                <control type="label">
                    <left>50</left>
                    <top>25</top>
                    <width>1400</width>
                    <height>50</height>
                    <font>font45</font>
                    <label>$INFO[Window.Property(WCS.MyTV.SeriesGrid.Title)]</label>
                    <textcolor>white</textcolor>
                    <aligny>center</aligny>
                </control>
                
                <!-- Subtitle -->
                <control type="label">
                    <left>50</left>
                    <top>80</top>
                    <width>1400</width>
                    <height>30</height>
                    <font>font13</font>
                    <label>Správa seriálů v kanálu</label>
                    <textcolor>60FFFFFF</textcolor>
                </control>
                
                <!-- Action Buttons Row -->
                <control type="group">
                    <left>30</left>
                    <top>135</top>
                    <width>1540</width>
                    <height>65</height>
                    <usecontrolcoords>true</usecontrolcoords>
                    
                    <!-- Play Channel (Ring Border) -->
                    <control type="group">
                        <left>110</left>
                        <width>240</width><height>65</height>
                        <control type="button" id="9110">
                            <left>0</left><top>0</top>
                            <width>240</width><height>65</height>
                            <font>font14_bold</font>
                            <label>Přehrát kanál</label>
                            <align>center</align><aligny>center</aligny>
                            <textcolor>AAFFFFFF</textcolor>
                            <focusedcolor>FFFFFFFF</focusedcolor>
                            <onup>noop</onup>
                            <ondown>9100</ondown>
                            <onleft>noop</onleft>
                            <onright>9111</onright>
                            <texturefocus border="32" colordiffuse="CC2997FF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                            <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        </control>
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>240</width><height>65</height>
                            <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>!Control.HasFocus(9110)</visible>
                        </control>
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>240</width><height>65</height>
                            <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>Control.HasFocus(9110)</visible>
                        </control>
                    </control>
                    
                    <!-- Shuffle Program (Ring Border) -->
                    <control type="group">
                        <left>370</left>
                        <width>310</width><height>65</height>
                        <control type="button" id="9111">
                            <left>0</left><top>0</top>
                            <width>310</width><height>65</height>
                            <font>font14_bold</font>
                            <label>Zamíchat program</label>
                            <align>center</align><aligny>center</aligny>
                            <textcolor>AAFFFFFF</textcolor>
                            <focusedcolor>FFFFFFFF</focusedcolor>
                            <onup>noop</onup>
                            <ondown>9100</ondown>
                            <onleft>9110</onleft>
                            <onright>9115</onright>
                            <texturefocus border="32" colordiffuse="BB666666">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                            <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        </control>
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>310</width><height>65</height>
                            <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>!Control.HasFocus(9111)</visible>
                        </control>
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>310</width><height>65</height>
                            <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>Control.HasFocus(9111)</visible>
                        </control>
                    </control>
                    
                    <!-- Milionář - Channel Mix (Ring Border) -->
                    <control type="group">
                        <left>700</left>
                        <width>170</width><height>65</height>
                        <control type="button" id="9115">
                            <left>0</left><top>0</top>
                            <width>170</width><height>65</height>
                            <font>font14_bold</font>
                            <label>Milionář</label>
                            <align>center</align><aligny>center</aligny>
                            <textcolor>AAFFFFFF</textcolor>
                            <focusedcolor>FFFFFFFF</focusedcolor>
                            <onup>noop</onup>
                            <ondown>9100</ondown>
                            <onleft>9111</onleft>
                            <onright>9113</onright>
                            <texturefocus border="32" colordiffuse="CCFFB800">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                            <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        </control>
                        <control type="image">
                            <left>0</left><top>0</top><width>170</width><height>65</height>
                            <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>!Control.HasFocus(9115)</visible>
                        </control>
                        <control type="image">
                            <left>0</left><top>0</top><width>170</width><height>65</height>
                            <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>Control.HasFocus(9115)</visible>
                        </control>
                    </control>
                    
                    <!-- Regenerate Name (AI) (Ring Border) -->
                    <control type="group">
                        <left>890</left>
                        <width>280</width><height>65</height>
                        <control type="button" id="9113">
                            <left>0</left><top>0</top>
                            <width>280</width><height>65</height>
                            <font>font14_bold</font>
                            <label>   Název od AI</label>
                            <align>center</align><aligny>center</aligny>
                            <textcolor>AAFFFFFF</textcolor>
                            <focusedcolor>FFFFFFFF</focusedcolor>
                            <onup>noop</onup>
                            <ondown>9100</ondown>
                            <onleft>9115</onleft>
                            <onright>9114</onright>
                            <texturefocus border="32" colordiffuse="FFBF5AF2">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                            <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        </control>
                        <!-- AI sparkle icon -->
                        <control type="image">
                            <left>30</left><top>16</top>
                            <width>28</width><height>28</height>
                            <texture>special://home/addons/plugin.video.milionar/resources/media/icon_ai_sparkle.png</texture>
                            <aspectratio>keep</aspectratio>
                            <colordiffuse>EEFFFFFF</colordiffuse>
                        </control>
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>280</width><height>65</height>
                            <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>!Control.HasFocus(9113)</visible>
                        </control>
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>280</width><height>65</height>
                            <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>Control.HasFocus(9113)</visible>
                        </control>
                    </control>
                    
                    <!-- Delete Channel (Ring Border) -->
                    <control type="group">
                        <left>1190</left>
                        <width>240</width><height>65</height>
                        <control type="button" id="9114">
                            <left>0</left><top>0</top>
                            <width>240</width><height>65</height>
                            <font>font14_bold</font>
                            <label>Odebrat kanál</label>
                            <align>center</align><aligny>center</aligny>
                            <textcolor>AAFFFFFF</textcolor>
                            <focusedcolor>FFFFFFFF</focusedcolor>
                            <onup>noop</onup>
                            <ondown>9100</ondown>
                            <onleft>9113</onleft>
                            <onright>noop</onright>
                            <texturefocus border="32" colordiffuse="FFFF453A">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                            <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        </control>
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>240</width><height>65</height>
                            <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>!Control.HasFocus(9114)</visible>
                        </control>
                        <control type="image">
                            <left>0</left><top>0</top>
                            <width>240</width><height>65</height>
                            <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                            <visible>Control.HasFocus(9114)</visible>
                        </control>
                    </control>
                </control>
                
                <!-- DELETE CONFIRMATION INLINE (replaces action buttons when active) -->
                <control type="group">
                    <left>30</left>
                    <top>135</top>
                    <width>1540</width>
                    <height>65</height>
                    <visible>String.IsEqual(Window.Property(WCS.MyTV.DeleteConfirm),true)</visible>
                    <animation effect="fade" start="0" end="100" time="200">Visible</animation>
                    <animation effect="fade" start="100" end="0" time="150">Hidden</animation>
                    
                    <!-- Full-width background bar -->
                    <control type="image">
                        <left>0</left>
                        <top>0</top>
                        <width>1540</width>
                        <height>65</height>
                        <texture border="32" colordiffuse="FF1a2535">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texture>
                    </control>
                    
                    <!-- Warning text (left side) -->
                    <control type="label">
                        <left>30</left>
                        <top>0</top>
                        <width>900</width>
                        <height>65</height>
                        <font>font14</font>
                        <label>$INFO[Window.Property(WCS.Button.DeleteConfirm)]</label>
                        <textcolor>CCFFFFFF</textcolor>
                        <align>left</align>
                        <aligny>center</aligny>
                    </control>
                    
                    <!-- Cancel button (right side, gray) -->
                    <control type="button" id="9007">
                        <left>1120</left>
                        <top>0</top>
                        <width>190</width>
                        <height>65</height>
                        <font>font14_bold</font>
                        <label>Zrusit</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <onleft>9007</onleft>
                        <onright>9006</onright>
                        <onup>9007</onup>
                        <ondown>9007</ondown>
                        <texturefocus border="32" colordiffuse="80404858">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                        <texturenofocus border="32" colordiffuse="50404858">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                        <animation effect="zoom" start="108" end="100" center="auto" time="150">UnFocus</animation>
                    </control>
                    
                    <!-- Delete/Confirm button (right side, red) -->
                    <control type="button" id="9006">
                        <left>1330</left>
                        <top>0</top>
                        <width>190</width>
                        <height>65</height>
                        <font>font14_bold</font>
                        <label>Odebrat</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <onleft>9007</onleft>
                        <onright>9006</onright>
                        <onup>9006</onup>
                        <ondown>9006</ondown>
                        <texturefocus border="32" colordiffuse="FFFF3B30">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                        <texturenofocus border="32" colordiffuse="80FF3B30">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                        <animation effect="zoom" start="108" end="100" center="auto" time="150">UnFocus</animation>
                    </control>
                </control>
                
                <!-- Series grid (9100 panel) -->
                <control type="panel" id="9100">
                    <left>20</left>
                    <top>220</top>
                    <width>1560</width>
                    <height>490</height>
                    <onup>9110</onup>
                    <ondown>noop</ondown>
                    <onleft>noop</onleft>
                    <onright>noop</onright>
                    <viewtype label="icon">icon</viewtype>
                    <preloaditems>3</preloaditems>
                    
                    <itemlayout height="320" width="195">
                         <control type="image">
                            <left>10</left>
                            <top>10</top>
                            <width>175</width>
                            <height>262</height>
                            <texture fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_tv_card.jpg" diffuse="special://home/addons/plugin.video.milionar/resources/media/card_mask.png">$INFO[ListItem.Art(poster)]</texture>
                            <aspectratio>stretch</aspectratio>
                         </control>
                         <!-- Series name under poster (auto-scroll) -->
                         <control type="label">
                            <left>10</left>
                            <top>278</top>
                            <width>175</width>
                            <height>30</height>
                            <font>font12</font>
                            <label>$INFO[ListItem.Label]</label>
                            <textcolor>80FFFFFF</textcolor>
                            <align>center</align>
                            <scroll>true</scroll>
                            <scrollspeed>30</scrollspeed>
                         </control>
                    </itemlayout>
    
                    <focusedlayout height="320" width="195">
                        <control type="image">
                            <left>10</left>
                            <top>10</top>
                            <width>175</width>
                            <height>262</height>
                            <texture fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_tv_card.jpg" diffuse="special://home/addons/plugin.video.milionar/resources/media/card_mask.png">$INFO[ListItem.Art(poster)]</texture>
                            <aspectratio>stretch</aspectratio>
                            <animation effect="zoom" start="100" end="112" center="auto" time="200">Focus</animation>
                            <animation effect="zoom" start="112" end="100" center="auto" time="200">UnFocus</animation>
                        </control>
                        <!-- Series name - brighter on focus (auto-scroll) -->
                        <control type="label">
                            <left>10</left>
                            <top>278</top>
                            <width>175</width>
                            <height>30</height>
                            <font>font13</font>
                            <label>$INFO[ListItem.Label]</label>
                            <textcolor>EEFFFFFF</textcolor>
                            <align>center</align>
                            <scroll>true</scroll>
                            <scrollspeed>30</scrollspeed>
                        </control>
                    </focusedlayout>
                </control>
            </control>
        </control>

        <!-- ==================================================================================== -->
        <!-- ADD SERIES DIALOG (Inline - was DialogAddSeries.xml) -->
        <!-- ==================================================================================== -->
        
        <!-- Dim overlay (separate group for fade animation) -->
        <control type="group">
            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.AddDialog.Active))</visible>
            <animation effect="fade" start="0" end="100" time="250">Visible</animation>
            <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>1920</width>
                <height>1080</height>
                <texture colordiffuse="70000000">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
            </control>
        </control>
        
        <!-- Floating panel (separate group for slide animation) -->
        <control type="group">
            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.AddDialog.Active))</visible>
            <animation effect="zoom" start="90" end="100" center="auto" time="300" tween="cubic" easing="out">Visible</animation>
            <animation effect="fade" start="0" end="100" time="250">Visible</animation>
            <animation effect="zoom" start="100" end="90" center="auto" time="250" tween="cubic" easing="in">Hidden</animation>
            <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
            
            <!-- Floating panel container -->
            <control type="group">
                <left>160</left>
                <top>180</top>
                <width>1600</width>
                <height>720</height>

                <!-- Panel background with rounded corners -->
                <control type="image">
                    <left>0</left>
                    <top>0</top>
                    <width>1600</width>
                    <height>720</height>
                    <texture border="34">special://home/addons/plugin.video.milionar/resources/media/dialog_rounded_large.png</texture>
                    <colordiffuse>F01A1A1A</colordiffuse>
                </control>
                <!-- ============================================ -->
                <!-- STATE 1: Action Selection -->
                <!-- ============================================ -->
                <control type="group">
                    <visible>String.IsEmpty(Window.Property(WCS.MyTV.AddDialog.ListingMode))</visible>
                    
                    <!-- Title (TV Mode) -->
                    <control type="label">
                        <left>50</left>
                        <top>25</top>
                        <width>1400</width>
                        <height>50</height>
                        <font>font45</font>
                        <label>Pridat serial do kanalu</label>
                        <textcolor>white</textcolor>
                        <visible>!String.IsEqual(Window.Property(WCS.MediaType),cinema)</visible>
                    </control>
                    <!-- Title (Cinema Mode) -->
                    <control type="label">
                        <left>50</left>
                        <top>25</top>
                        <width>1400</width>
                        <height>50</height>
                        <font>font45</font>
                        <label>Pridat film do kina</label>
                        <textcolor>white</textcolor>
                        <visible>String.IsEqual(Window.Property(WCS.MediaType),cinema)</visible>
                    </control>
                    
                    <!-- 4 Action Cards Container -->
                    <control type="group" id="9205">
                        <left>50</left>
                        <top>100</top>
                        <width>1500</width>
                        <height>280</height>
                        
                        <!-- Card 1: Z mojí knihovny -->
                        <control type="group">
                            <left>0</left>
                            <top>0</top>
                            <width>340</width>
                            <height>280</height>
                            <control type="button" id="9201">
                                <left>0</left>
                                <top>0</top>
                                <width>340</width>
                                <height>200</height>
                                <label></label>
                                <onup>noop</onup>
                                <ondown>noop</ondown>
                                <onright>9202</onright>
                                <texturefocus colordiffuse="FFFFFFFF">special://home/addons/plugin.video.milionar/resources/media/card_my_library.jpg</texturefocus>
                                <texturenofocus colordiffuse="80FFFFFF">special://home/addons/plugin.video.milionar/resources/media/card_my_library.jpg</texturenofocus>
                            </control>
                            <control type="label">
                                <left>0</left>
                                <top>210</top>
                                <width>340</width>
                                <height>40</height>
                                <font>font27</font>
                                <label>Z mojí knihovny</label>
                                <textcolor>FFFFFFFF</textcolor>
                                <align>center</align>
                                <visible>Control.HasFocus(9201)</visible>
                            </control>
                            <control type="label">
                                <left>0</left>
                                <top>210</top>
                                <width>340</width>
                                <height>40</height>
                                <font>font27</font>
                                <label>Z mojí knihovny</label>
                                <textcolor>80FFFFFF</textcolor>
                                <align>center</align>
                                <visible>!Control.HasFocus(9201)</visible>
                            </control>
                        </control>
                        
                        <!-- Card 2: Vyhledat na TMDb -->
                        <control type="group">
                            <left>370</left>
                            <top>0</top>
                            <width>340</width>
                            <height>280</height>
                            <control type="button" id="9202">
                                <left>0</left>
                                <top>0</top>
                                <width>340</width>
                                <height>200</height>
                                <label></label>
                                <onup>noop</onup>
                                <ondown>noop</ondown>
                                <onleft>9201</onleft>
                                <onright>9203</onright>
                                <texturefocus colordiffuse="FFFFFFFF">special://home/addons/plugin.video.milionar/resources/media/card_search_tmdb.jpg</texturefocus>
                                <texturenofocus colordiffuse="80FFFFFF">special://home/addons/plugin.video.milionar/resources/media/card_search_tmdb.jpg</texturenofocus>
                            </control>
                            <control type="label">
                                <left>0</left>
                                <top>210</top>
                                <width>340</width>
                                <height>40</height>
                                <font>font27</font>
                                <label>Vyhledat na TMDb</label>
                                <textcolor>FFFFFFFF</textcolor>
                                <align>center</align>
                                <visible>Control.HasFocus(9202)</visible>
                            </control>
                            <control type="label">
                                <left>0</left>
                                <top>210</top>
                                <width>340</width>
                                <height>40</height>
                                <font>font27</font>
                                <label>Vyhledat na TMDb</label>
                                <textcolor>80FFFFFF</textcolor>
                                <align>center</align>
                                <visible>!Control.HasFocus(9202)</visible>
                            </control>
                        </control>
                        
                        <!-- Card 3: Doporučit z TMDb -->
                        <control type="group">
                            <left>740</left>
                            <top>0</top>
                            <width>340</width>
                            <height>280</height>
                            <control type="button" id="9203">
                                <left>0</left>
                                <top>0</top>
                                <width>340</width>
                                <height>200</height>
                                <label></label>
                                <onup>noop</onup>
                                <ondown>noop</ondown>
                                <onleft>9202</onleft>
                                <onright>9204</onright>
                                <texturefocus colordiffuse="FFFFFFFF">special://home/addons/plugin.video.milionar/resources/media/card_tmdb_recommend.jpg</texturefocus>
                                <texturenofocus colordiffuse="80FFFFFF">special://home/addons/plugin.video.milionar/resources/media/card_tmdb_recommend.jpg</texturenofocus>
                            </control>
                            <control type="label">
                                <left>0</left>
                                <top>210</top>
                                <width>340</width>
                                <height>40</height>
                                <font>font27</font>
                                <label>Doporučit z TMDb</label>
                                <textcolor>FFFFFFFF</textcolor>
                                <align>center</align>
                                <visible>Control.HasFocus(9203)</visible>
                            </control>
                            <control type="label">
                                <left>0</left>
                                <top>210</top>
                                <width>340</width>
                                <height>40</height>
                                <font>font27</font>
                                <label>Doporučit z TMDb</label>
                                <textcolor>80FFFFFF</textcolor>
                                <align>center</align>
                                <visible>!Control.HasFocus(9203)</visible>
                            </control>
                        </control>
                        
                        <!-- Card 4: Doporučit od AI -->
                        <control type="group">
                            <left>1110</left>
                            <top>0</top>
                            <width>340</width>
                            <height>280</height>
                            <control type="button" id="9204">
                                <left>0</left>
                                <top>0</top>
                                <width>340</width>
                                <height>200</height>
                                <label></label>
                                <onup>noop</onup>
                                <ondown>noop</ondown>
                                <onleft>9203</onleft>
                                <texturefocus colordiffuse="FFFFFFFF">special://home/addons/plugin.video.milionar/resources/media/card_ai_recommend.jpg</texturefocus>
                                <texturenofocus colordiffuse="80FFFFFF">special://home/addons/plugin.video.milionar/resources/media/card_ai_recommend.jpg</texturenofocus>
                            </control>
                            <control type="label">
                                <left>0</left>
                                <top>210</top>
                                <width>340</width>
                                <height>40</height>
                                <font>font27</font>
                                <label>Doporučit od AI</label>
                                <textcolor>FFFFFFFF</textcolor>
                                <align>center</align>
                                <visible>Control.HasFocus(9204)</visible>
                            </control>
                            <control type="label">
                                <left>0</left>
                                <top>210</top>
                                <width>340</width>
                                <height>40</height>
                                <font>font27</font>
                                <label>Doporučit od AI</label>
                                <textcolor>80FFFFFF</textcolor>
                                <align>center</align>
                                <visible>!Control.HasFocus(9204)</visible>
                            </control>
                        </control>
                    </control>
                    
                    <!-- Dynamic description based on focus -->
                    <control type="label">
                        <left>50</left>
                        <top>530</top>
                        <width>1500</width>
                        <height>80</height>
                        <font>font24</font>
                        <label>$INFO[Window.Property(WCS.MyTV.AddDialog.Description)]</label>
                        <textcolor>AAFFFFFF</textcolor>
                        <align>center</align>
                        <wrapmultiline>true</wrapmultiline>
                    </control>
                </control>
                
                <!-- ============================================ -->
                <!-- STATE 2: Series Listing -->
                <!-- ============================================ -->
                <control type="group">
                    <visible>!String.IsEmpty(Window.Property(WCS.MyTV.AddDialog.ListingMode)) + String.IsEmpty(Window.Property(WCS.MyTV.AddDialog.AILoading))</visible>
                    
                    <!-- Title (dynamic based on mode) -->
                    <control type="label">
                        <left>50</left>
                        <top>25</top>
                        <width>1400</width>
                        <height>50</height>
                        <font>font45</font>
                        <label>$INFO[Window.Property(WCS.MyTV.AddDialog.ListingTitle)]</label>
                        <textcolor>white</textcolor>
                    </control>
                    
                    <!-- Series horizontal list -->
                    <control type="wraplist" id="9211">
                        <left>50</left>
                        <top>100</top>
                        <width>900</width>
                        <height>580</height>
                        <orientation>horizontal</orientation>
                        <scrolltime tween="cubic" easing="out">300</scrolltime>
                        <preloaditems>3</preloaditems>
                        <onup>noop</onup>
                        <ondown>noop</ondown>
                        <onright>noop</onright>
                        
                        <itemlayout height="520" width="200">
                            <control type="image">
                                <left>10</left>
                                <top>20</top>
                                <width>180</width>
                                <height>270</height>
                                <texture fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_tv_card.jpg" diffuse="special://home/addons/plugin.video.milionar/resources/media/card_mask.png">$INFO[ListItem.Art(poster)]</texture>
                                <aspectratio>stretch</aspectratio>
                            </control>
                            <!-- Checkmark for added series -->
                            <control type="image">
                                <right>15</right>
                                <top>25</top>
                                <width>40</width>
                                <height>40</height>
                                <texture colordiffuse="FF00CC66">special://home/addons/plugin.video.milionar/resources/media/checkmark.png</texture>
                                <visible>String.IsEqual(ListItem.Property(is_added),true)</visible>
                            </control>
                            <!-- Series name -->
                            <control type="label">
                                <left>10</left>
                                <top>300</top>
                                <width>180</width>
                                <height>60</height>
                                <font>font10</font>
                                <label>$INFO[ListItem.Label]</label>
                                <textcolor>AAFFFFFF</textcolor>
                                <align>center</align>
                                <wrapmultiline>true</wrapmultiline>
                            </control>
                        </itemlayout>
                        
                        <focusedlayout height="520" width="200">
                            <control type="image">
                                <left>5</left>
                                <top>15</top>
                                <width>190</width>
                                <height>285</height>
                                <texture fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_tv_card.jpg" diffuse="special://home/addons/plugin.video.milionar/resources/media/card_mask.png">$INFO[ListItem.Art(poster)]</texture>
                                <aspectratio>stretch</aspectratio>
                                <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                            </control>
                            <!-- Focus border -->
                            <control type="image">
                                <left>0</left>
                                <top>10</top>
                                <width>200</width>
                                <height>295</height>
                                <texture colordiffuse="CCFFFFFF">special://home/addons/plugin.video.milionar/resources/media/card_border_focus.png</texture>
                                <aspectratio>stretch</aspectratio>
                                <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                            </control>
                            <!-- Checkmark for added series -->
                            <control type="image">
                                <right>10</right>
                                <top>20</top>
                                <width>45</width>
                                <height>45</height>
                                <texture colordiffuse="FF00CC66">special://home/addons/plugin.video.milionar/resources/media/checkmark.png</texture>
                                <visible>String.IsEqual(ListItem.Property(is_added),true)</visible>
                                <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                            </control>
                            <!-- Series name -->
                            <control type="label">
                                <left>10</left>
                                <top>310</top>
                                <width>180</width>
                                <height>60</height>
                                <font>font10</font>
                                <label>$INFO[ListItem.Label]</label>
                                <textcolor>white</textcolor>
                                <align>center</align>
                                <wrapmultiline>true</wrapmultiline>
                                <scroll>true</scroll>
                            </control>
                        </focusedlayout>
                    </control>
                    
                    <!-- Metadata Panel (right side) -->
                    <control type="group">
                        <left>980</left>
                        <top>100</top>
                        <width>580</width>
                        <height>580</height>
                        
                        <!-- Metadata background -->
                        <control type="image">
                            <left>0</left>
                            <top>0</top>
                            <width>580</width>
                            <height>580</height>
                            <texture border="20" colordiffuse="40000000">special://home/addons/plugin.video.milionar/resources/media/panel_bg_rounded.png</texture>
                        </control>
                        
                        <!-- Fanart/backdrop -->
                        <control type="image">
                            <left>20</left>
                            <top>20</top>
                            <width>540</width>
                            <height>200</height>
                            <texture fallback="special://home/addons/plugin.video.milionar/resources/media/fanart_fallback.jpg" diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png">$INFO[Container(9211).ListItem.Art(fanart)]</texture>
                            <aspectratio>scale</aspectratio>
                        </control>
                        
                        <!-- Series title -->
                        <control type="label">
                            <left>20</left>
                            <top>235</top>
                            <width>540</width>
                            <height>45</height>
                            <font>font37</font>
                            <label>$INFO[Container(9211).ListItem.Label]</label>
                            <textcolor>white</textcolor>
                        </control>
                        
                        <!-- Year and genre -->
                        <control type="label">
                            <left>20</left>
                            <top>285</top>
                            <width>540</width>
                            <height>30</height>
                            <font>font13</font>
                            <label>$INFO[Container(9211).ListItem.Property(year)] | $INFO[Container(9211).ListItem.Property(genre)]</label>
                            <textcolor>80FFFFFF</textcolor>
                        </control>
                        
                        <!-- Rating -->
                        <control type="label">
                            <left>20</left>
                            <top>320</top>
                            <width>540</width>
                            <height>30</height>
                            <font>font12</font>
                            <label>Hodnocení: $INFO[Container(9211).ListItem.Property(rating)]</label>
                            <textcolor>FFCCAA00</textcolor>
                            <visible>!String.IsEmpty(Container(9211).ListItem.Property(rating))</visible>
                        </control>
                        
                        <!-- Plot -->
                        <control type="textbox">
                            <left>20</left>
                            <top>360</top>
                            <width>540</width>
                            <height>200</height>
                            <font>font12</font>
                            <label>$INFO[Container(9211).ListItem.Property(plot)]</label>
                            <textcolor>AAFFFFFF</textcolor>
                            <autoscroll delay="4000" time="2000" repeat="4000">true</autoscroll>
                        </control>
                    </control>
                    
                    <!-- Hint text area -->
                    <control type="group">
                        <left>50</left>
                        <top>580</top>
                        <width>900</width>
                        <height>30</height>
                        
                        <!-- Default hint when no actions visible -->
                        <control type="label">
                            <left>0</left>
                            <top>0</top>
                            <width>900</width>
                            <height>30</height>
                            <font>font24</font>
                            <label>Stiskni ENTER pro zobrazení možností</label>
                            <textcolor>60FFFFFF</textcolor>
                            <align>center</align>
                            <visible>String.IsEmpty(Window.Property(WCS.MyTV.AddDialog.ActionsVisible))</visible>
                        </control>
                        
                        <!-- Action button descriptions when actions visible -->
                        <!-- Button 1: Pridat do kanalu (TV) -->
                        <control type="label">
                            <left>0</left>
                            <top>0</top>
                            <width>900</width>
                            <height>30</height>
                            <font>font24</font>
                            <label>Pridat serial do tohoto kanalu</label>
                            <textcolor>80FFFFFF</textcolor>
                            <align>center</align>
                            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.AddDialog.ActionsVisible)) + String.IsEqual(Container(9220).ListItem.Property(action_id),add_to_channel) + !String.IsEqual(Window.Property(WCS.MediaType),cinema)</visible>
                        </control>
                        <!-- Button 1: Pridat do kina (Cinema) -->
                        <control type="label">
                            <left>0</left>
                            <top>0</top>
                            <width>900</width>
                            <height>30</height>
                            <font>font24</font>
                            <label>Pridat film do tohoto kina</label>
                            <textcolor>80FFFFFF</textcolor>
                            <align>center</align>
                            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.AddDialog.ActionsVisible)) + String.IsEqual(Container(9220).ListItem.Property(action_id),add_to_channel) + String.IsEqual(Window.Property(WCS.MediaType),cinema)</visible>
                        </control>
                        
                        <!-- Button 2: Moje serialy (TV) - matches both old and new action_id -->
                        <control type="label">
                            <left>0</left>
                            <top>0</top>
                            <width>900</width>
                            <height>30</height>
                            <font>font24</font>
                            <label>Pridat do knihovny Moje serialy</label>
                            <textcolor>80FFFFFF</textcolor>
                            <align>center</align>
                            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.AddDialog.ActionsVisible)) + [String.IsEqual(Container(9220).ListItem.Property(action_id),add_to_my_series) | String.IsEqual(Container(9220).ListItem.Property(action_id),add_to_my_library)] + !String.IsEqual(Window.Property(WCS.MediaType),cinema)</visible>
                        </control>
                        <!-- Button 2: Moje filmy (Cinema) - matches both old and new action_id -->
                        <control type="label">
                            <left>0</left>
                            <top>0</top>
                            <width>900</width>
                            <height>30</height>
                            <font>font24</font>
                            <label>Pridat do knihovny Moje filmy</label>
                            <textcolor>80FFFFFF</textcolor>
                            <align>center</align>
                            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.AddDialog.ActionsVisible)) + [String.IsEqual(Container(9220).ListItem.Property(action_id),add_to_my_series) | String.IsEqual(Container(9220).ListItem.Property(action_id),add_to_my_library)] + String.IsEqual(Window.Property(WCS.MediaType),cinema)</visible>
                        </control>
                        
                        <!-- Button 3: Podobne (TV) -->
                        <control type="label">
                            <left>0</left>
                            <top>0</top>
                            <width>900</width>
                            <height>30</height>
                            <font>font24</font>
                            <label>Zobrazit podobne serialy z TMDb</label>
                            <textcolor>80FFFFFF</textcolor>
                            <align>center</align>
                            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.AddDialog.ActionsVisible)) + String.IsEqual(Container(9220).ListItem.Property(action_id),find_similar) + !String.IsEqual(Window.Property(WCS.MediaType),cinema)</visible>
                        </control>
                        <!-- Button 3: Podobne (Cinema) -->
                        <control type="label">
                            <left>0</left>
                            <top>0</top>
                            <width>900</width>
                            <height>30</height>
                            <font>font24</font>
                            <label>Zobrazit podobne filmy z TMDb</label>
                            <textcolor>80FFFFFF</textcolor>
                            <align>center</align>
                            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.AddDialog.ActionsVisible)) + String.IsEqual(Container(9220).ListItem.Property(action_id),find_similar) + String.IsEqual(Window.Property(WCS.MediaType),cinema)</visible>
                        </control>
                        
                        <!-- Button 4: Milionář -->
                        <control type="label">
                            <left>0</left>
                            <top>0</top>
                            <width>900</width>
                            <height>30</height>
                            <font>font24</font>
                            <label>Spustit kvíz Milionář o tomto seriálu</label>
                            <textcolor>80FFFFFF</textcolor>
                            <align>center</align>
                            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.AddDialog.ActionsVisible)) + String.IsEqual(Container(9220).ListItem.Property(action_id),play_game)</visible>
                        </control>
                    </control>
                    
                    <!-- ACTION BUTTONS OVERLAY (Slide down from poster area) -->
                    <control type="group">
                        <visible>!String.IsEmpty(Window.Property(WCS.MyTV.AddDialog.ActionsVisible))</visible>
                        <animation effect="slide" start="0,-50" end="0,0" time="250" tween="cubic" easing="out">Visible</animation>
                        <animation effect="slide" start="0,0" end="0,-50" time="150" tween="cubic" easing="in">Hidden</animation>
                        <animation effect="fade" start="0" end="100" time="250">Visible</animation>
                        <animation effect="fade" start="100" end="0" time="150">Hidden</animation>
                        
                        <!-- Action buttons list - directly under posters -->
                        <control type="list" id="9220">
                            <left>50</left>
                            <top>450</top>
                            <width>900</width>
                            <height>65</height>
                            <orientation>horizontal</orientation>
                            <onup>9211</onup>
                            <ondown>noop</ondown>
                            <onleft>noop</onleft>
                            <onright>noop</onright>
                            
                            <itemlayout height="65" width="225">
                                <!-- Default: Subtle transparent pill background -->
                                <control type="image">
                                    <left>5</left>
                                    <top>0</top>
                                    <width>215</width>
                                    <height>65</height>
                                    <texture border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texture>
                                </control>
                                <!-- Ring border (nofocus) -->
                                <control type="image">
                                    <left>5</left>
                                    <top>0</top>
                                    <width>215</width>
                                    <height>65</height>
                                    <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                                </control>
                                <control type="label">
                                    <left>5</left>
                                    <top>0</top>
                                    <width>215</width>
                                    <height>65</height>
                                    <align>center</align>
                                    <aligny>center</aligny>
                                    <label>$INFO[ListItem.Label]</label>
                                    <textcolor>AAFFFFFF</textcolor>
                                    <font>font14_bold</font>
                                </control>
                            </itemlayout>
                            
                            <focusedlayout height="65" width="225">
                                <!-- Unfocused state (list has focus but item not selected) -->
                                <control type="group">
                                    <visible>!Control.HasFocus(9220)</visible>
                                    <control type="image">
                                        <left>5</left>
                                        <top>0</top>
                                        <width>215</width>
                                        <height>65</height>
                                        <texture border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texture>
                                    </control>
                                    <control type="image">
                                        <left>5</left>
                                        <top>0</top>
                                        <width>215</width>
                                        <height>65</height>
                                        <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                                    </control>
                                    <control type="label">
                                        <left>5</left>
                                        <top>0</top>
                                        <width>215</width>
                                        <height>65</height>
                                        <align>center</align>
                                        <aligny>center</aligny>
                                        <label>$INFO[ListItem.Label]</label>
                                        <textcolor>AAFFFFFF</textcolor>
                                        <font>font14_bold</font>
                                    </control>
                                </control>

                                <!-- Focused state: Brighter -->
                                <control type="group">
                                    <visible>Control.HasFocus(9220)</visible>
                                    <!-- Fill background -->
                                    <control type="image">
                                        <left>5</left>
                                        <top>0</top>
                                        <width>215</width>
                                        <height>65</height>
                                        <texture border="32" colordiffuse="BB666666">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texture>
                                    </control>
                                    <!-- Ring border (focus) -->
                                    <control type="image">
                                        <left>5</left>
                                        <top>0</top>
                                        <width>215</width>
                                        <height>65</height>
                                        <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                                    </control>
                                    <!-- White text -->
                                    <control type="label">
                                        <left>5</left>
                                        <top>0</top>
                                        <width>215</width>
                                        <height>65</height>
                                        <align>center</align>
                                        <aligny>center</aligny>
                                        <label>$INFO[ListItem.Label]</label>
                                        <textcolor>FFFFFFFF</textcolor>
                                        <font>font14_bold</font>
                                    </control>
                                </control>
                            </focusedlayout>
                        </control>
                    </control>
                </control>
                
                <!-- ============================================ -->
                <!-- STATE 3: AI Loading Matrix Overlay -->
                <!-- ============================================ -->
                <control type="group">
                    <visible>!String.IsEmpty(Window.Property(WCS.MyTV.AddDialog.AILoading))</visible>
                    <animation effect="fade" start="0" end="100" time="400">Visible</animation>
                    <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
                    
                    <!-- Full panel background with subtle gradient -->
                    <control type="image">
                        <left>0</left>
                        <top>0</top>
                        <width>1600</width>
                        <height>720</height>
                        <texture border="30">special://home/addons/plugin.video.milionar/resources/media/btn_rounded.png</texture>
                        <colordiffuse>F0121218</colordiffuse>
                    </control>
                    
                    <!-- Subtle scan line overlay for Matrix effect -->
                    <control type="image">
                        <left>0</left>
                        <top>0</top>
                        <width>1600</width>
                        <height>720</height>
                        <texture border="30" colordiffuse="08FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded.png</texture>
                        <animation effect="fade" start="30" end="80" time="1500" loop="true" reversible="true" pulse="true">Visible</animation>
                    </control>
                    
                    <!-- ======= HEADER SECTION ======= -->
                    <control type="group">
                        <left>50</left>
                        <top>40</top>
                        <width>1500</width>
                        <height>80</height>
                        
                        <!-- Main Title - "AI přemýšlí" with glow -->
                        <control type="label">
                            <left>0</left>
                            <top>0</top>
                            <width>1500</width>
                            <height>55</height>
                            <font>font45</font>
                            <label>AI přemýšlí</label>
                            <textcolor>FF00AAFF</textcolor>
                            <align>center</align>
                            <animation effect="fade" start="70" end="100" time="800" loop="true" reversible="true" pulse="true">Visible</animation>
                        </control>
                        
                        <!-- Subtitle with status -->
                        <control type="label">
                            <left>0</left>
                            <top>55</top>
                            <width>1500</width>
                            <height>25</height>
                            <font>font13</font>
                            <label>$INFO[Window.Property(WCS.MyTV.AddDialog.AIStatus)]</label>
                            <textcolor>80FFFFFF</textcolor>
                            <align>center</align>
                        </control>
                    </control>
                    
                    <!-- ======= CENTER MATRIX ANIMATION AREA ======= -->
                    <control type="group">
                        <left>0</left>
                        <top>150</top>
                        <width>1600</width>
                        <height>380</height>
                        
                        <!-- Animated glitch text - Large centered -->
                        <control type="label">
                            <left>0</left>
                            <top>100</top>
                            <width>1600</width>
                            <height>80</height>
                            <font>font_fallback</font>
                            <label>$INFO[Window.Property(WCS.MyTV.AddDialog.GlitchText)]</label>
                            <textcolor>FF00FF88</textcolor>
                            <align>center</align>
                            <aligny>center</aligny>
                            <animation effect="zoom" start="98" end="102" center="auto" time="600" loop="true" reversible="true" pulse="true">Visible</animation>
                            <animation effect="fade" start="60" end="100" time="400" loop="true" reversible="true" pulse="true">Visible</animation>
                        </control>
                        
                        <!-- Decorative animated dots (loading indicator) -->
                        <control type="group">
                            <left>700</left>
                            <top>200</top>
                            <width>200</width>
                            <height>30</height>
                            
                            <!-- Dot 1 -->
                            <control type="image">
                                <left>30</left>
                                <top>5</top>
                                <width>20</width>
                                <height>20</height>
                                <texture colordiffuse="FF00AAFF">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                                <animation effect="fade" start="30" end="100" time="500" delay="0" loop="true" reversible="true" pulse="true">Visible</animation>
                                <animation effect="zoom" start="80" end="100" center="auto" time="500" delay="0" loop="true" reversible="true" pulse="true">Visible</animation>
                            </control>
                            
                            <!-- Dot 2 -->
                            <control type="image">
                                <left>70</left>
                                <top>5</top>
                                <width>20</width>
                                <height>20</height>
                                <texture colordiffuse="FF00FF88">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                                <animation effect="fade" start="30" end="100" time="500" delay="200" loop="true" reversible="true" pulse="true">Visible</animation>
                                <animation effect="zoom" start="80" end="100" center="auto" time="500" delay="200" loop="true" reversible="true" pulse="true">Visible</animation>
                            </control>
                            
                            <!-- Dot 3 -->
                            <control type="image">
                                <left>110</left>
                                <top>5</top>
                                <width>20</width>
                                <height>20</height>
                                <texture colordiffuse="FF00AAFF">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                                <animation effect="fade" start="30" end="100" time="500" delay="400" loop="true" reversible="true" pulse="true">Visible</animation>
                                <animation effect="zoom" start="80" end="100" center="auto" time="500" delay="400" loop="true" reversible="true" pulse="true">Visible</animation>
                            </control>
                            
                            <!-- Dot 4 -->
                            <control type="image">
                                <left>150</left>
                                <top>5</top>
                                <width>20</width>
                                <height>20</height>
                                <texture colordiffuse="FF00FF88">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                                <animation effect="fade" start="30" end="100" time="500" delay="600" loop="true" reversible="true" pulse="true">Visible</animation>
                                <animation effect="zoom" start="80" end="100" center="auto" time="500" delay="600" loop="true" reversible="true" pulse="true">Visible</animation>
                            </control>
                        </control>
                        
                        <!-- Fun status message -->
                        <control type="label">
                            <left>0</left>
                            <top>260</top>
                            <width>1600</width>
                            <height>30</height>
                            <font>font12</font>
                            <label>--- $INFO[Window.Property(WCS.MyTV.AddDialog.FunStatus)] ---</label>
                            <textcolor>60FFFFFF</textcolor>
                            <align>center</align>
                            <animation effect="fade" start="50" end="100" time="1200" loop="true" reversible="true" pulse="true">Visible</animation>
                        </control>
                    </control>
                    
                    <!-- ======= BOTTOM INFO BAR ======= -->
                    <control type="group">
                        <left>50</left>
                        <top>560</top>
                        <width>1500</width>
                        <height>120</height>
                        
                        <!-- Separator line -->
                        <control type="image">
                            <left>400</left>
                            <top>0</top>
                            <width>700</width>
                            <height>2</height>
                            <texture colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                        </control>
                        
                        <!-- Provider info (Left - Cyan) -->
                        <control type="label">
                            <left>0</left>
                            <top>20</top>
                            <width>600</width>
                            <height>30</height>
                            <font>font13</font>
                            <label>Provider: $INFO[Window.Property(WCS.MyTV.AddDialog.Provider)]</label>
                            <textcolor>FF00FFFF</textcolor>
                            <align>left</align>
                        </control>
                        
                        <!-- Model info (Left below provider) -->
                        <control type="label">
                            <left>0</left>
                            <top>55</top>
                            <width>1000</width>
                            <height>30</height>
                            <font>font13</font>
                            <label>Model: $INFO[Window.Property(WCS.MyTV.AddDialog.Model)]</label>
                            <textcolor>FFFFA500</textcolor>
                            <align>left</align>
                        </control>
                        
                        <!-- Timer (Right side - prominent) -->
                        <control type="label">
                            <left>900</left>
                            <top>30</top>
                            <width>600</width>
                            <height>50</height>
                            <font>font45</font>
                            <label>$INFO[Window.Property(WCS.MyTV.AddDialog.Timer)]</label>
                            <textcolor>FF00AAFF</textcolor>
                            <align>right</align>
                            <animation effect="fade" start="80" end="100" time="500" loop="true" reversible="true" pulse="true">Visible</animation>
                        </control>
                    </control>
                    
                    <!-- Hidden button to trap focus during loading -->
                    <control type="button" id="9250">
                        <left>-100</left>
                        <top>-100</top>
                        <width>1</width>
                        <height>1</height>
                        <texturefocus></texturefocus>
                        <texturenofocus></texturenofocus>
                        <onup>noop</onup>
                        <ondown>noop</ondown>
                        <onleft>noop</onleft>
                        <onright>noop</onright>
                        <onclick>noop</onclick>
                    </control>
                </control>
            </control>
            
        </control>


        <!-- SERIES DETAIL DIALOG (Inline - shows when clicking on series in grid) -->
        <!-- ==================================================================================== -->
        
        <!-- Dim overlay -->
        <control type="group">
            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.SeriesDetail.Active))</visible>
            <animation effect="fade" start="0" end="100" time="250">Visible</animation>
            <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>1920</width>
                <height>1080</height>
                <texture colordiffuse="70000000">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
            </control>
        </control>
        
        <!-- Series Detail Panel -->
        <control type="group">
            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.SeriesDetail.Active))</visible>
            <animation effect="zoom" start="90" end="100" center="auto" time="300" tween="cubic" easing="out">Visible</animation>
            <animation effect="fade" start="0" end="100" time="250">Visible</animation>
            <animation effect="zoom" start="100" end="90" center="auto" time="250" tween="cubic" easing="in">Hidden</animation>
            <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
            
            <!-- Main panel container - matched to grid/add series size -->
            <control type="group">
                <left>160</left>
                <top>180</top>
                <width>1600</width>
                <height>720</height>
                
                <!-- Panel background with rounded corners -->
                <control type="image">
                    <left>0</left>
                    <top>0</top>
                    <width>1600</width>
                    <height>720</height>
                    <texture border="34">special://home/addons/plugin.video.milionar/resources/media/dialog_rounded_large.png</texture>
                    <colordiffuse>F01A1A1A</colordiffuse>
                </control>
                
                <!-- Fanart backdrop (left side, large) -->
                <control type="image">
                    <left>20</left>
                    <top>20</top>
                    <width>600</width>
                    <height>680</height>
                    <texture fallback="special://home/addons/plugin.video.milionar/resources/media/fanart_fallback.jpg" diffuse="special://home/addons/plugin.video.milionar/resources/media/card_mask_large.png">$INFO[Window.Property(WCS.MyTV.SeriesDetail.Fanart)]</texture>
                    <aspectratio scalediffuse="false">scale</aspectratio>
                </control>
                
                <!-- Gradient overlay on fanart for better text readability -->
                <control type="image">
                    <left>20</left>
                    <top>20</top>
                    <width>600</width>
                    <height>680</height>
                    <texture colordiffuse="80000000">special://home/addons/plugin.video.milionar/resources/media/gradient_right.png</texture>
                </control>
                
                <!-- Series Logo (over fanart, bottom) -->
                <control type="image">
                    <left>50</left>
                    <top>540</top>
                    <width>540</width>
                    <height>140</height>
                    <texture>$INFO[Window.Property(WCS.MyTV.SeriesDetail.Logo)]</texture>
                    <aspectratio aligny="bottom">keep</aspectratio>
                    <visible>!String.IsEmpty(Window.Property(WCS.MyTV.SeriesDetail.Logo))</visible>
                </control>
                
                <!-- Series name (fallback when no logo) -->
                <control type="label">
                    <left>50</left>
                    <top>580</top>
                    <width>540</width>
                    <height>80</height>
                    <font>font45</font>
                    <label>$INFO[Window.Property(WCS.MyTV.SeriesDetail.Name)]</label>
                    <textcolor>white</textcolor>
                    <shadowcolor>black</shadowcolor>
                    <visible>String.IsEmpty(Window.Property(WCS.MyTV.SeriesDetail.Logo))</visible>
                </control>

                
                <!-- Metadata section (right side) -->
                <control type="group">
                    <left>660</left>
                    <top>25</top>
                    <width>900</width>
                    <height>670</height>
                    
                    <!-- Series title -->
                    <control type="label">
                        <left>0</left>
                        <top>0</top>
                        <width>900</width>
                        <height>55</height>
                        <font>font45</font>
                        <label>$INFO[Window.Property(WCS.MyTV.SeriesDetail.Name)]</label>
                        <textcolor>white</textcolor>
                    </control>
                    
                    <!-- Year | Genre -->
                    <control type="label">
                        <left>0</left>
                        <top>65</top>
                        <width>900</width>
                        <height>30</height>
                        <font>font27</font>
                        <label>$INFO[Window.Property(WCS.MyTV.SeriesDetail.Year)] | $INFO[Window.Property(WCS.MyTV.SeriesDetail.Genre)]</label>
                        <textcolor>80FFFFFF</textcolor>
                    </control>
                    
                    <!-- Rating -->
                    <control type="label">
                        <left>0</left>
                        <top>105</top>
                        <width>900</width>
                        <height>30</height>
                        <font>font27</font>
                        <label>Hodnocení: $INFO[Window.Property(WCS.MyTV.SeriesDetail.Rating)]</label>
                        <textcolor>FFCCAA00</textcolor>
                        <visible>!String.IsEmpty(Window.Property(WCS.MyTV.SeriesDetail.Rating))</visible>
                    </control>
                    
                    <!-- Plot -->
                    <control type="textbox">
                        <left>0</left>
                        <top>150</top>
                        <width>880</width>
                        <height>400</height>
                        <font>font27</font>
                        <label>$INFO[Window.Property(WCS.MyTV.SeriesDetail.Plot)]</label>
                        <textcolor>AAFFFFFF</textcolor>
                        <autoscroll delay="5000" time="2000" repeat="5000">true</autoscroll>
                    </control>
                    
                    <control type="group">
                        <left>0</left>
                        <top>0</top>
                        <visible>!String.IsEqual(Window.Property(WCS.MyTV.DeleteSeriesConfirm),true)</visible>
                        <animation effect="fade" start="0" end="100" time="600">Visible</animation>
                        <animation effect="fade" start="100" end="0" time="300">Hidden</animation>
                    <!-- Buttons row - 4 buttons centered -->
                    <control type="group">
                        <left>55</left>
                        <top>570</top>
                        <width>800</width>
                        <height>65</height>
                        
                        <!-- Play series button (Ring Border) -->
                        <control type="group">
                            <left>50</left><top>0</top>
                            <width>150</width><height>65</height>
                            <control type="button" id="9304">
                                <left>0</left><top>0</top>
                                <width>150</width><height>65</height>
                                <font>font14_bold</font>
                                <label>Přehrát</label>
                                <align>center</align><aligny>center</aligny>
                                <textcolor>AAFFFFFF</textcolor>
                                <focusedcolor>FFFFFFFF</focusedcolor>
                                <onup>noop</onup>
                                <ondown>noop</ondown>
                                <onleft>noop</onleft>
                                <onright>9302</onright>
                                <texturefocus border="32" colordiffuse="CC2997FF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                                <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                            </control>
                            <control type="image">
                                <left>0</left><top>0</top><width>150</width><height>65</height>
                                <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                                <visible>!Control.HasFocus(9304)</visible>
                            </control>
                            <control type="image">
                                <left>0</left><top>0</top><width>150</width><height>65</height>
                                <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                                <visible>Control.HasFocus(9304)</visible>
                            </control>
                        </control>
                        
                        <!-- Milionář button (Ring Border) -->
                        <control type="group">
                            <left>220</left><top>0</top>
                            <width>170</width><height>65</height>
                            <control type="button" id="9302">
                                <left>0</left><top>0</top>
                                <width>170</width><height>65</height>
                                <font>font14_bold</font>
                                <label>Milionář</label>
                                <align>center</align><aligny>center</aligny>
                                <textcolor>AAFFFFFF</textcolor>
                                <focusedcolor>FFFFFFFF</focusedcolor>
                                <onup>noop</onup>
                                <ondown>noop</ondown>
                                <onleft>9304</onleft>
                                <onright>9303</onright>
                                <texturefocus border="32" colordiffuse="CCFFB800">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                                <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                            </control>
                            <control type="image">
                                <left>0</left><top>0</top><width>170</width><height>65</height>
                                <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                                <visible>!Control.HasFocus(9302)</visible>
                            </control>
                            <control type="image">
                                <left>0</left><top>0</top><width>170</width><height>65</height>
                                <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                                <visible>Control.HasFocus(9302)</visible>
                            </control>
                        </control>
                        
                        <!-- Similar button (Ring Border) -->
                        <control type="group">
                            <left>410</left><top>0</top>
                            <width>160</width><height>65</height>
                            <control type="button" id="9303">
                                <left>0</left><top>0</top>
                                <width>160</width><height>65</height>
                                <font>font14_bold</font>
                                <label>Podobné</label>
                                <align>center</align><aligny>center</aligny>
                                <textcolor>AAFFFFFF</textcolor>
                                <focusedcolor>FFFFFFFF</focusedcolor>
                                <onup>noop</onup>
                                <ondown>noop</ondown>
                                <onleft>9302</onleft>
                                <onright>9300</onright>
                                <texturefocus border="32" colordiffuse="BB666666">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                                <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                            </control>
                            <control type="image">
                                <left>0</left><top>0</top><width>160</width><height>65</height>
                                <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                                <visible>!Control.HasFocus(9303)</visible>
                            </control>
                            <control type="image">
                                <left>0</left><top>0</top><width>160</width><height>65</height>
                                <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                                <visible>Control.HasFocus(9303)</visible>
                            </control>
                        </control>
                        
                        <!-- Remove from channel button (Ring Border) -->
                        <control type="group">
                            <left>590</left><top>0</top>
                            <width>160</width><height>65</height>
                            <control type="button" id="9300">
                                <left>0</left><top>0</top>
                                <width>160</width><height>65</height>
                                <font>font14_bold</font>
                                <label>Odebrat</label>
                                <align>center</align><aligny>center</aligny>
                                <textcolor>AAFFFFFF</textcolor>
                                <focusedcolor>FFFFFFFF</focusedcolor>
                                <onup>noop</onup>
                                <ondown>noop</ondown>
                                <onleft>9303</onleft>
                                <onright>noop</onright>
                                <texturefocus border="32" colordiffuse="FFFF3B30">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                                <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                            </control>
                            <control type="image">
                                <left>0</left><top>0</top><width>160</width><height>65</height>
                                <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                                <visible>!Control.HasFocus(9300)</visible>
                            </control>
                            <control type="image">
                                <left>0</left><top>0</top><width>160</width><height>65</height>
                                <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                                <visible>Control.HasFocus(9300)</visible>
                            </control>
                        </control>
                    </control>
                    </control>
                    
                    <!-- DELETE SERIES CONFIRMATION INLINE DIALOG -->
                    <control type="group">
                        <left>55</left>
                        <top>570</top>
                        <width>800</width>
                        <height>65</height>
                        <visible>String.IsEqual(Window.Property(WCS.MyTV.DeleteSeriesConfirm),true)</visible>
                        <animation effect="slide" start="-790,0" end="0,0" time="450" tween="cubic" easing="out">Visible</animation>
                        <animation effect="fade" start="0" end="100" time="450">Visible</animation>
                        <animation effect="slide" start="0,0" end="-790,0" time="350" tween="cubic" easing="in">Hidden</animation>
                        <animation effect="fade" start="100" end="0" time="350">Hidden</animation>
                        
                        <!-- Background panel -->
                        <control type="image">
                            <left>0</left>
                            <top>0</top>
                            <width>800</width>
                            <height>65</height>
                            <texture border="32" colordiffuse="FF101525">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texture>
                        </control>
                        
                        <!-- Warning text -->
                        <control type="label">
                            <left>30</left>
                            <top>0</top>
                            <width>400</width>
                            <height>65</height>
                            <font>font14_bold</font>
                            <label>Odebrat seriál z kanálu?</label>
                            <textcolor>white</textcolor>
                            <align>left</align>
                            <aligny>center</aligny>
                        </control>
                        
                        <!-- Cancel button -->
                        <control type="button" id="9306">
                            <left>460</left>
                            <top>0</top>
                            <width>160</width>
                            <height>65</height>
                            <font>font14_bold</font>
                            <label>Zrušit</label>
                            <align>center</align><aligny>center</aligny>
                            <onleft>noop</onleft>
                            <onright>9305</onright>
                            <onup>noop</onup>
                            <ondown>noop</ondown>
                            <texturefocus border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                            <texturenofocus border="32" colordiffuse="25FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                            <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                            <animation effect="zoom" start="108" end="100" center="auto" time="150">UnFocus</animation>
                        </control>
                        
                        <!-- Delete button (destructive) -->
                        <control type="button" id="9305">
                            <left>640</left>
                            <top>0</top>
                            <width>160</width>
                            <height>65</height>
                            <font>font14_bold</font>
                            <label>Odebrat</label>
                            <align>center</align><aligny>center</aligny>
                            <onleft>9306</onleft>
                            <onright>noop</onright>
                            <onup>noop</onup>
                            <ondown>noop</ondown>
                            <texturefocus border="32" colordiffuse="FFFF3B30">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                            <texturenofocus border="32" colordiffuse="25FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                            <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                            <animation effect="zoom" start="108" end="100" center="auto" time="150">UnFocus</animation>
                        </control>
                    </control>
                </control>
            </control>
        </control>

        <!-- ==================================================================================== -->
        <!-- CUSTOM TOAST NOTIFICATION - Moderní notifikace v pravém horním rohu -->
        <!-- ==================================================================================== -->
        <control type="group">
            <left>1920</left>
            <top>50</top>
            <visible>!String.IsEmpty(Window.Property(WCS.Toast.Visible))</visible>
            
            <!-- Slide-in animace zprava -->
            <animation effect="slide" start="0,0" end="-560,0" time="350" tween="cubic" easing="out">Visible</animation>
            <animation effect="fade" start="0" end="100" time="300" delay="50">Visible</animation>
            
            <!-- Slide-out a fade-out animace -->
            <animation effect="slide" start="-560,0" end="0,0" time="280" tween="cubic" easing="in">Hidden</animation>
            <animation effect="fade" start="100" end="0" time="250">Hidden</animation>
            
            <!-- Vnější glow/shadow efekt pro hloubku -->
            <control type="image">
                <left>-15</left>
                <top>-10</top>
                <width>550</width>
                <height>95</height>
                <texture border="30" colordiffuse="40000000">special://home/addons/plugin.video.milionar/resources/media/btn_rounded.png</texture>
            </control>
            
            <!-- Hlavní pozadí s glassmorphism efektem -->
            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>520</width>
                <height>75</height>
                <texture border="20" colordiffuse="DD0A0A18">special://home/addons/plugin.video.milionar/resources/media/btn_rounded.png</texture>
            </control>
            
            <!-- Subtle gradient overlay pro premium look -->
            <control type="image">
                <left>0</left>
                <top>0</top>
                <width>520</width>
                <height>38</height>
                <texture colordiffuse="15FFFFFF">special://home/addons/plugin.video.milionar/resources/media/gradient_bottom.png</texture>
                <aspectratio>stretch</aspectratio>
                <flipy>true</flipy>
            </control>
            
            <!-- Accent bar vlevo - dynamická barva podle typu -->
            <!-- Info (modrá) -->
            <control type="image">
                <left>12</left>
                <top>15</top>
                <width>4</width>
                <height>45</height>
                <texture colordiffuse="FF4488FF">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                <visible>String.IsEqual(Window.Property(WCS.Toast.Type),info) | String.IsEmpty(Window.Property(WCS.Toast.Type))</visible>
            </control>
            <!-- Success (zelená) -->
            <control type="image">
                <left>12</left>
                <top>15</top>
                <width>4</width>
                <height>45</height>
                <texture colordiffuse="FF44DD66">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                <visible>String.IsEqual(Window.Property(WCS.Toast.Type),success)</visible>
            </control>
            <!-- Warning (oranžová) -->
            <control type="image">
                <left>12</left>
                <top>15</top>
                <width>4</width>
                <height>45</height>
                <texture colordiffuse="FFFFAA44">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                <visible>String.IsEqual(Window.Property(WCS.Toast.Type),warning)</visible>
            </control>
            <!-- Error (červená) -->
            <control type="image">
                <left>12</left>
                <top>15</top>
                <width>4</width>
                <height>45</height>
                <texture colordiffuse="FFFF4455">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                <visible>String.IsEqual(Window.Property(WCS.Toast.Type),error)</visible>
            </control>
            
            <!-- Text zprávy -->
            <control type="label">
                <left>30</left>
                <top>0</top>
                <width>475</width>
                <height>75</height>
                <font>font27</font>
                <label>$INFO[Window.Property(WCS.Toast.Message)]</label>
                <textcolor>FFFFFFFF</textcolor>
                <align>left</align>
                <aligny>center</aligny>
            </control>
        </control>


        <!-- ==================================================================================== -->
        <!-- PLAY SELECTION VARIANT A: FULLSCREEN -->
        <!-- ==================================================================================== -->
        <!-- Dim overlay -->
        <control type="group">
            <visible>String.IsEqual(Window.Property(WCS.MyTV.PlaySelection),true) + String.IsEqual(Window.Property(WCS.PlaySelect.Style),fullscreen)</visible>
            <animation effect="fade" start="0" end="100" time="400">Visible</animation>
            <animation effect="fade" start="100" end="0" time="250">Hidden</animation>
            <control type="image">
                <left>0</left><top>0</top><width>1920</width><height>1080</height>
                <texture colordiffuse="E8000000">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
            </control>
        </control>
        <!-- Fullscreen content -->
        <control type="group">
            <visible>String.IsEqual(Window.Property(WCS.MyTV.PlaySelection),true) + String.IsEqual(Window.Property(WCS.PlaySelect.Style),fullscreen)</visible>
            <animation effect="slide" start="0,60" end="0,0" time="500" tween="cubic" easing="out">Visible</animation>
            <animation effect="fade" start="0" end="100" time="400">Visible</animation>
            <animation effect="slide" start="0,0" end="0,60" time="300" tween="cubic" easing="in">Hidden</animation>
            <animation effect="fade" start="100" end="0" time="250">Hidden</animation>
            
            <!-- Full-screen Still/Fanart with Ken Burns effect -->
            <control type="image">
                <left>-40</left><top>-20</top><width>2000</width><height>1120</height>
                <texture fallback="$INFO[Window.Property(WCS.PlaySelect.Fanart)]">$INFO[Window.Property(WCS.PlaySelect.Still)]</texture>
                <aspectratio>scale</aspectratio>
                <animation effect="zoom" start="100" end="105" center="960,540" time="12000" reversible="false" loop="true" pulse="true">Visible</animation>
            </control>
            <!-- Cinematic gradient overlay (transparent top -> black bottom) -->
            <control type="image">
                <left>0</left><top>0</top><width>1920</width><height>1080</height>
                <texture>special://home/addons/plugin.video.milionar/resources/media/gradient_cinematic_bottom.png</texture>
                <aspectratio>stretch</aspectratio>
            </control>
            
            <!-- Series Logo (top-left, safe zone) -->
            <control type="image">
                <left>60</left><top>48</top><width>300</width><height>120</height>
                <texture>$INFO[Window.Property(WCS.PlaySelect.SeriesLogo)]</texture>
                <aspectratio>keep</aspectratio>
                <animation effect="fade" start="0" end="100" time="600" delay="200">Visible</animation>
            </control>
            
            <!-- Poster with rounded corners -->
            <control type="image">
                <left>80</left><top>550</top><width>220</width><height>330</height>
                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/poster_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[Window.Property(WCS.PlaySelect.Poster)]</texture>
                <aspectratio scalediffuse="false">scale</aspectratio>
            </control>
            
            <!-- Info area (right of poster) -->
            <control type="group">
                <left>340</left><top>555</top>
                
                <!-- Series Name (premium large bold) -->
                <control type="label">
                    <left>0</left><top>0</top><width>1200</width><height>70</height>
                    <font>font_MainMenu</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.SeriesName)]</label>
                    <textcolor>FFFFFFFF</textcolor>
                    <scroll>true</scroll>
                    <scrollspeed>40</scrollspeed>
                </control>
                <!-- Episode Code + Title -->
                <control type="label">
                    <left>0</left><top>72</top><width>1200</width><height>40</height>
                    <font>font32_title</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.EpCode)]  $INFO[Window.Property(WCS.PlaySelect.EpTitle)]</label>
                    <textcolor>FFAACCFF</textcolor>
                    <scroll>true</scroll>
                    <scrollspeed>40</scrollspeed>
                </control>
                <!-- Metadata line (dynamic, no empty separators) -->
                <control type="label">
                    <left>0</left><top>120</top><width>1200</width><height>30</height>
                    <font>font13</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.MetaLine)]</label>
                    <textcolor>99FFFFFF</textcolor>
                </control>
                <!-- Plot (auto-scroll after 3500ms) -->
                <control type="textbox">
                    <left>0</left><top>162</top><width>1100</width><height>165</height>
                    <font>font13</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.Plot)]</label>
                    <textcolor>AAFFFFFF</textcolor>
                    <autoscroll delay="7500" time="2000" repeat="5000">true</autoscroll>
                </control>
            </control>
            
            <!-- Buttons (bottom) -->
            <control type="grouplist">
                <left>80</left><top>960</top><width>1760</width><height>90</height>
                <orientation>horizontal</orientation>
                <itemgap>20</itemgap>
                <onup>noop</onup><ondown>noop</ondown>
                
                <!-- Play Episode (primary action) -->
                <control type="button" id="9023">
                    <width>320</width><height>65</height>
                    <font>font14_bold</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.PlayEpLabel)]</label>
                    <align>center</align><aligny>center</aligny>
                    <texturefocus border="32" colordiffuse="FF2997FF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                    <texturenofocus border="32" colordiffuse="40FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    <animation effect="zoom" start="100" end="106" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                    <animation effect="zoom" start="106" end="100" center="auto" time="200" tween="cubic" easing="out">UnFocus</animation>
                </control>
                <!-- Live Broadcast -->
                <control type="button" id="9020">
                    <width>280</width><height>65</height>
                    <font>font14_bold</font>
                    <label>Živé vysílání</label>
                    <align>center</align><aligny>center</aligny>
                    <texturefocus border="32" colordiffuse="CCFFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                    <texturenofocus border="32" colordiffuse="25FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    <animation effect="zoom" start="100" end="106" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                    <animation effect="zoom" start="106" end="100" center="auto" time="200" tween="cubic" easing="out">UnFocus</animation>
                </control>
                <!-- Play Series -->
                <control type="button" id="9021">
                    <width>280</width><height>65</height>
                    <font>font14_bold</font>
                    <label>$INFO[Window.Property(WCS.Button.PlaySeries)]</label>
                    <align>center</align><aligny>center</aligny>
                    <texturefocus border="32" colordiffuse="CCFFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                    <texturenofocus border="32" colordiffuse="25FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    <animation effect="zoom" start="100" end="106" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                    <animation effect="zoom" start="106" end="100" center="auto" time="200" tween="cubic" easing="out">UnFocus</animation>
                </control>
                <!-- Cancel -->
                <control type="button" id="9022">
                    <width>220</width><height>65</height>
                    <font>font14_bold</font>
                    <label>Zrušit</label>
                    <align>center</align><aligny>center</aligny>
                    <texturefocus border="32" colordiffuse="FFFF453A">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                    <texturenofocus border="32" colordiffuse="25FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    <animation effect="zoom" start="100" end="106" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                    <animation effect="zoom" start="106" end="100" center="auto" time="200" tween="cubic" easing="out">UnFocus</animation>
                </control>
            </control>
        </control>



        <!-- ==================================================================================== -->
        <!-- PLAY SELECTION VARIANT C: INLINE DETAIL -->
        <!-- ==================================================================================== -->
        <control type="group">
            <left>560</left><top>80</top>
            <visible>String.IsEqual(Window.Property(WCS.MyTV.PlaySelection),true) + String.IsEqual(Window.Property(WCS.PlaySelect.Style),inline)</visible>
            <animation effect="slide" start="100,0" end="0,0" time="350" tween="cubic" easing="out">Visible</animation>
            <animation effect="fade" start="0" end="100" time="300">Visible</animation>
            <animation effect="slide" start="0,0" end="100,0" time="250" tween="cubic" easing="in">Hidden</animation>
            <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
            
            <!-- Panel background -->
            <control type="image">
                <left>0</left><top>0</top><width>1300</width><height>870</height>
                <texture colordiffuse="F01A1A1A" border="32">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texture>
            </control>
            <!-- Left accent -->
            <control type="image">
                <left>0</left><top>0</top><width>4</width><height>870</height>
                <texture colordiffuse="FF2997FF">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
            </control>
            
            <!-- Still (top) -->
            <control type="image">
                <left>30</left><top>25</top><width>1240</width><height>380</height>
                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/poster_mask_rounded.png" fallback="$INFO[Window.Property(WCS.PlaySelect.Fanart)]">$INFO[Window.Property(WCS.PlaySelect.Still)]</texture>
                <aspectratio scalediffuse="false">scale</aspectratio>
            </control>
            
            <!-- Info below still -->
            <control type="group">
                <left>30</left><top>420</top>
                <control type="label">
                    <left>0</left><top>0</top><width>1240</width><height>48</height>
                    <font>font37</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.SeriesName)]</label>
                    <textcolor>white</textcolor>
                </control>
                <control type="label">
                    <left>0</left><top>52</top><width>1240</width><height>32</height>
                    <font>font14_bold</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.EpCode)]  $INFO[Window.Property(WCS.PlaySelect.EpTitle)]</label>
                    <textcolor>FFAACCFF</textcolor>
                </control>
                <control type="label">
                    <left>0</left><top>92</top><width>1240</width><height>28</height>
                    <font>font13</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.Year)]  |  $INFO[Window.Property(WCS.PlaySelect.Genre)]  |  $INFO[Window.Property(WCS.PlaySelect.Runtime)]  |  $INFO[Window.Property(WCS.PlaySelect.Rating)]</label>
                    <textcolor>99FFFFFF</textcolor>
                </control>
                <control type="textbox">
                    <left>0</left><top>128</top><width>1240</width><height>120</height>
                    <font>font13</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.Plot)]</label>
                    <textcolor>BBFFFFFF</textcolor>
                </control>
            </control>
            
            <!-- Buttons -->
            <control type="grouplist">
                <left>30</left><top>690</top><width>1240</width><height>80</height>
                <orientation>horizontal</orientation>
                <itemgap>20</itemgap>
                <onup>noop</onup><ondown>noop</ondown>
                <control type="button" id="9023">
                    <width>280</width><height>65</height><font>font14_bold</font><label>$INFO[Window.Property(WCS.PlaySelect.PlayEpLabel)]</label>
                    <align>center</align><aligny>center</aligny>
                    <texturefocus border="32" colordiffuse="FF2997FF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                    <texturenofocus border="32" colordiffuse="40FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                    <animation effect="zoom" start="108" end="100" center="auto" time="150">UnFocus</animation>
                </control>
                <control type="button" id="9020">
                    <width>260</width><height>65</height><font>font14_bold</font><label>Živé vysílání</label>
                    <align>center</align><aligny>center</aligny>
                    <texturefocus border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                    <texturenofocus border="32" colordiffuse="25FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                    <animation effect="zoom" start="108" end="100" center="auto" time="150">UnFocus</animation>
                </control>
                <control type="button" id="9021">
                    <width>260</width><height>65</height><font>font14_bold</font><label>$INFO[Window.Property(WCS.Button.PlaySeries)]</label>
                    <align>center</align><aligny>center</aligny>
                    <texturefocus border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                    <texturenofocus border="32" colordiffuse="25FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                    <animation effect="zoom" start="108" end="100" center="auto" time="150">UnFocus</animation>
                </control>
                <control type="button" id="9022">
                    <width>180</width><height>65</height><font>font14_bold</font><label>Zrušit</label>
                    <align>center</align><aligny>center</aligny>
                    <texturefocus border="32" colordiffuse="FFFF3B30">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                    <texturenofocus border="32" colordiffuse="25FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                    <animation effect="zoom" start="108" end="100" center="auto" time="150">UnFocus</animation>
                </control>
            </control>
        </control>

        <!-- ==================================================================================== -->
        <!-- PLAY SELECTION VARIANT D: SIDE PANEL+ (enhanced right panel) -->
        <!-- ==================================================================================== -->
        <control type="group">
            <left>1000</left><top>60</top>
            <visible>String.IsEqual(Window.Property(WCS.MyTV.PlaySelection),true) + String.IsEqual(Window.Property(WCS.PlaySelect.Style),sidepanel)</visible>
            <animation effect="slide" start="920,0" end="0,0" time="350" tween="cubic" easing="out">Visible</animation>
            <animation effect="fade" start="0" end="100" time="250">Visible</animation>
            <animation effect="slide" start="0,0" end="920,0" time="250" tween="cubic" easing="in">Hidden</animation>
            <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
            
            <!-- Panel bg -->
            <control type="image">
                <left>0</left><top>0</top><width>880</width><height>960</height>
                <texture colordiffuse="F0141414" border="32">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texture>
            </control>
            
            <!-- Hero Still -->
            <control type="image">
                <left>20</left><top>20</top><width>840</width><height>370</height>
                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/poster_mask_rounded.png" fallback="$INFO[Window.Property(WCS.PlaySelect.Fanart)]">$INFO[Window.Property(WCS.PlaySelect.Still)]</texture>
                <aspectratio scalediffuse="false">scale</aspectratio>
            </control>
            
            <!-- Poster (small, overlapping still) -->
            <control type="image">
                <left>30</left><top>310</top><width>120</width><height>180</height>
                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/poster_mask_rounded.png">$INFO[Window.Property(WCS.PlaySelect.Poster)]</texture>
                <aspectratio scalediffuse="false">scale</aspectratio>
            </control>
            
            <!-- Info -->
            <control type="group">
                <left>170</left><top>400</top>
                <control type="label">
                    <left>0</left><top>0</top><width>690</width><height>50</height>
                    <font>font37</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.SeriesName)]</label>
                    <textcolor>white</textcolor>
                </control>
                <control type="label">
                    <left>0</left><top>55</top><width>690</width><height>32</height>
                    <font>font14_bold</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.EpCode)]  $INFO[Window.Property(WCS.PlaySelect.EpTitle)]</label>
                    <textcolor>FFAACCFF</textcolor>
                </control>
            </control>
            
            <control type="group">
                <left>20</left><top>510</top>
                <control type="label">
                    <left>0</left><top>0</top><width>840</width><height>26</height>
                    <font>font13</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.Year)]  |  $INFO[Window.Property(WCS.PlaySelect.Genre)]  |  $INFO[Window.Property(WCS.PlaySelect.Runtime)]  |  $INFO[Window.Property(WCS.PlaySelect.Rating)]</label>
                    <textcolor>99FFFFFF</textcolor>
                </control>
                <control type="textbox">
                    <left>0</left><top>35</top><width>840</width><height>160</height>
                    <font>font13</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.Plot)]</label>
                    <textcolor>BBFFFFFF</textcolor>
                </control>
            </control>
            
            <!-- Buttons -->
            <control type="grouplist">
                <left>20</left><top>750</top><width>840</width><height>190</height>
                <orientation>vertical</orientation>
                <itemgap>20</itemgap>
                <onleft>noop</onleft><onright>noop</onright>
                <control type="button" id="9023">
                    <width>840</width><height>65</height><font>font14_bold</font><label>$INFO[Window.Property(WCS.PlaySelect.PlayEpLabel)]</label>
                    <align>center</align><aligny>center</aligny>
                    <texturefocus border="32" colordiffuse="FF2997FF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                    <texturenofocus border="32" colordiffuse="40FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    <animation effect="zoom" start="100" end="105" center="auto" time="150">Focus</animation>
                    <animation effect="zoom" start="105" end="100" center="auto" time="150">UnFocus</animation>
                </control>
                <control type="button" id="9020">
                    <width>840</width><height>65</height><font>font14_bold</font><label>Živé vysílání</label>
                    <align>center</align><aligny>center</aligny>
                    <texturefocus border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                    <texturenofocus border="32" colordiffuse="25FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    <animation effect="zoom" start="100" end="105" center="auto" time="150">Focus</animation>
                    <animation effect="zoom" start="105" end="100" center="auto" time="150">UnFocus</animation>
                </control>
                <control type="button" id="9021">
                    <width>840</width><height>65</height><font>font14_bold</font><label>$INFO[Window.Property(WCS.Button.PlaySeries)]</label>
                    <align>center</align><aligny>center</aligny>
                    <texturefocus border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                    <texturenofocus border="32" colordiffuse="25FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    <animation effect="zoom" start="100" end="105" center="auto" time="150">Focus</animation>
                    <animation effect="zoom" start="105" end="100" center="auto" time="150">UnFocus</animation>
                </control>
                <control type="button" id="9022">
                    <width>840</width><height>65</height><font>font14_bold</font><label>Zrušit</label>
                    <align>center</align><aligny>center</aligny>
                    <texturefocus border="32" colordiffuse="FFFF3B30">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                    <texturenofocus border="32" colordiffuse="25FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    <animation effect="zoom" start="100" end="105" center="auto" time="150">Focus</animation>
                    <animation effect="zoom" start="105" end="100" center="auto" time="150">UnFocus</animation>
                </control>
            </control>
        </control>

        <!-- ==================================================================================== -->
        <!-- PLAY SELECTION VARIANT E: MODAL CARD (1600x720, matched to Series Grid/Detail) -->
        <!-- ==================================================================================== -->
        <!-- Dim overlay -->
        <control type="group">
            <visible>String.IsEqual(Window.Property(WCS.MyTV.PlaySelection),true) + String.IsEqual(Window.Property(WCS.PlaySelect.Style),modal)</visible>
            <animation effect="fade" start="0" end="100" time="250">Visible</animation>
            <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
            <control type="image">
                <left>0</left><top>0</top><width>1920</width><height>1080</height>
                <texture colordiffuse="D0000000">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
            </control>
        </control>
        <!-- Modal card -->
        <control type="group">
            <left>160</left><top>180</top>
            <visible>String.IsEqual(Window.Property(WCS.MyTV.PlaySelection),true) + String.IsEqual(Window.Property(WCS.PlaySelect.Style),modal)</visible>
            <animation effect="zoom" start="90" end="100" center="auto" time="300" tween="cubic" easing="out">Visible</animation>
            <animation effect="fade" start="0" end="100" time="250">Visible</animation>
            <animation effect="zoom" start="100" end="90" center="auto" time="250" tween="cubic" easing="in">Hidden</animation>
            <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
            
            <!-- Card bg (1600x720, matched to Series Grid/Detail) -->
            <control type="image">
                <left>0</left><top>0</top><width>1600</width><height>720</height>
                <texture colordiffuse="E01A1A1A" border="55">special://home/addons/plugin.video.milionar/resources/media/dialog_rounded_large.png</texture>
            </control>
            
            <!-- Still (top of card, full width) -->
            <control type="image">
                <left>20</left><top>20</top><width>1560</width><height>290</height>
                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_card_large.png" fallback="$INFO[Window.Property(WCS.PlaySelect.Fanart)]">$INFO[Window.Property(WCS.PlaySelect.Still)]</texture>
                <aspectratio scalediffuse="false">scale</aspectratio>
            </control>
            
            <!-- Poster (overlapping still, left side) -->
            <control type="image">
                <left>30</left><top>160</top><width>220</width><height>330</height>
                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/poster_mask_card_large.png">$INFO[Window.Property(WCS.PlaySelect.Poster)]</texture>
                <aspectratio scalediffuse="false">scale</aspectratio>
            </control>
            
            <!-- Info (next to poster) -->
            <control type="group">
                <left>270</left><top>320</top>
                <control type="label">
                    <left>0</left><top>0</top><width>1300</width><height>65</height>
                    <font>font_MainMenu</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.SeriesName)]</label>
                    <textcolor>FFFFFFFF</textcolor>
                    <scroll>true</scroll>
                    <scrollspeed>40</scrollspeed>
                </control>
                <control type="label">
                    <left>0</left><top>70</top><width>1300</width><height>55</height>
                    <font>font45</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.EpCode)]  $INFO[Window.Property(WCS.PlaySelect.EpTitle)]</label>
                    <textcolor>F0FFFFFF</textcolor>
                    <scroll>true</scroll>
                    <scrollspeed>40</scrollspeed>
                </control>
                <control type="label">
                    <left>0</left><top>129</top><width>1300</width><height>30</height>
                    <font>font13</font>
                    <label>$INFO[Window.Property(WCS.PlaySelect.Year)]  |  $INFO[Window.Property(WCS.PlaySelect.Genre)]  |  $INFO[Window.Property(WCS.PlaySelect.Runtime)]  |  ★ $INFO[Window.Property(WCS.PlaySelect.Rating)]</label>
                    <textcolor>99FFFFFF</textcolor>
                </control>
            </control>
            
            <!-- Plot (full width, below poster) -->
            <control type="textbox">
                <left>30</left><top>500</top><width>1540</width><height>100</height>
                <font>font13</font>
                <label>$INFO[Window.Property(WCS.PlaySelect.Plot)]</label>
                <textcolor>BBFFFFFF</textcolor>
                <autoscroll delay="5000" time="2000" repeat="5000">true</autoscroll>
            </control>
            
            <!-- Buttons (Ring Border, usecontrolcoords) -->
            <control type="group">
                <left>195</left><top>620</top><width>1210</width><height>65</height>
                <usecontrolcoords>true</usecontrolcoords>
                <!-- Play Episode -->
                <control type="group">
                    <left>0</left>
                    <width>270</width><height>65</height>
                    <control type="button" id="9023">
                        <left>0</left><top>0</top>
                        <width>270</width><height>65</height>
                        <font>font14_bold</font><label>$INFO[Window.Property(WCS.PlaySelect.PlayEpLabel)]</label>
                        <align>center</align><aligny>center</aligny>
                        <textcolor>AAFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <onup>noop</onup><ondown>noop</ondown>
                        <onleft>noop</onleft><onright>9020</onright>
                        <texturefocus border="32" colordiffuse="CC2997FF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                        <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    </control>
                    <control type="image">
                        <left>0</left><top>0</top><width>270</width><height>65</height>
                        <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                        <visible>!Control.HasFocus(9023)</visible>
                    </control>
                    <control type="image">
                        <left>0</left><top>0</top><width>270</width><height>65</height>
                        <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                        <visible>Control.HasFocus(9023)</visible>
                    </control>
                </control>
                <!-- Live Broadcast -->
                <control type="group">
                    <left>290</left>
                    <width>210</width><height>65</height>
                    <control type="button" id="9020">
                        <left>0</left><top>0</top>
                        <width>210</width><height>65</height>
                        <font>font14_bold</font><label>Živé vysílání</label>
                        <align>center</align><aligny>center</aligny>
                        <textcolor>AAFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <onup>noop</onup><ondown>noop</ondown>
                        <onleft>9023</onleft><onright>9021</onright>
                        <texturefocus border="32" colordiffuse="BB666666">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                        <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    </control>
                    <control type="image">
                        <left>0</left><top>0</top><width>210</width><height>65</height>
                        <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                        <visible>!Control.HasFocus(9020)</visible>
                    </control>
                    <control type="image">
                        <left>0</left><top>0</top><width>210</width><height>65</height>
                        <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                        <visible>Control.HasFocus(9020)</visible>
                    </control>
                </control>
                <!-- Play Series -->
                <control type="group">
                    <left>520</left>
                    <width>240</width><height>65</height>
                    <control type="button" id="9021">
                        <left>0</left><top>0</top>
                        <width>240</width><height>65</height>
                        <font>font14_bold</font><label>$INFO[Window.Property(WCS.Button.PlaySeries)]</label>
                        <align>center</align><aligny>center</aligny>
                        <textcolor>AAFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <onup>noop</onup><ondown>noop</ondown>
                        <onleft>9020</onleft><onright>9027</onright>
                        <texturefocus border="32" colordiffuse="BB666666">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                        <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    </control>
                    <control type="image">
                        <left>0</left><top>0</top><width>240</width><height>65</height>
                        <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                        <visible>!Control.HasFocus(9021)</visible>
                    </control>
                    <control type="image">
                        <left>0</left><top>0</top><width>240</width><height>65</height>
                        <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                        <visible>Control.HasFocus(9021)</visible>
                    </control>
                </control>
                <!-- Play Game (episode mode) -->
                <control type="group">
                    <left>780</left>
                    <width>170</width><height>65</height>
                    <control type="button" id="9027">
                        <left>0</left><top>0</top>
                        <width>170</width><height>65</height>
                        <font>font14_bold</font><label>Milionář</label>
                        <align>center</align><aligny>center</aligny>
                        <textcolor>AAFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <onup>noop</onup><ondown>noop</ondown>
                        <onleft>9021</onleft><onright>9026</onright>
                        <texturefocus border="32" colordiffuse="CCFFB800">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                        <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    </control>
                    <control type="image">
                        <left>0</left><top>0</top><width>170</width><height>65</height>
                        <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                        <visible>!Control.HasFocus(9027)</visible>
                    </control>
                    <control type="image">
                        <left>0</left><top>0</top><width>170</width><height>65</height>
                        <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                        <visible>Control.HasFocus(9027)</visible>
                    </control>
                </control>
                <!-- Edit Progress -->
                <control type="group">
                    <left>970</left>
                    <width>240</width><height>65</height>
                    <control type="button" id="9026">
                        <left>0</left><top>0</top>
                        <width>240</width><height>65</height>
                        <font>font14_bold</font><label>Upravit postup</label>
                        <align>center</align><aligny>center</aligny>
                        <textcolor>AAFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <onup>noop</onup><ondown>noop</ondown>
                        <onleft>9027</onleft><onright>noop</onright>
                        <texturefocus border="32" colordiffuse="BB666666">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                        <texturenofocus border="32" colordiffuse="60222222">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                    </control>
                    <control type="image">
                        <left>0</left><top>0</top><width>240</width><height>65</height>
                        <texture border="32" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                        <visible>!Control.HasFocus(9026)</visible>
                    </control>
                    <control type="image">
                        <left>0</left><top>0</top><width>240</width><height>65</height>
                        <texture border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog_ring.png</texture>
                        <visible>Control.HasFocus(9026)</visible>
                    </control>
                </control>
            </control>
        </control>

        <!-- ==================================================================================== -->
        <!-- EDIT PROGRESS OVERLAY - Editace postupu serialu -->
        <!-- ==================================================================================== -->
        <!-- Dim overlay with fanart background -->
        <control type="group">
            <visible>String.IsEqual(Window.Property(WCS.MyTV.EditProgress),true)</visible>
            <animation effect="fade" start="0" end="100" time="250">Visible</animation>
            <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
            <!-- Series fanart fullscreen -->
            <control type="image">
                <left>0</left><top>0</top><width>1920</width><height>1080</height>
                <texture fallback="special://home/addons/plugin.video.milionar/resources/media/white.png">$INFO[Window.Property(WCS.PlaySelect.Fanart)]</texture>
                <aspectratio>scale</aspectratio>
            </control>
            <!-- Dark overlay for readability -->
            <control type="image">
                <left>0</left><top>0</top><width>1920</width><height>1080</height>
                <texture colordiffuse="D0000000">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
            </control>
        </control>
        <!-- Edit Progress modal card -->
        <control type="group">
            <left>160</left><top>120</top>
            <visible>String.IsEqual(Window.Property(WCS.MyTV.EditProgress),true)</visible>
            <animation effect="zoom" start="90" end="100" center="auto" time="300" tween="cubic" easing="out">Visible</animation>
            <animation effect="fade" start="0" end="100" time="250">Visible</animation>
            <animation effect="zoom" start="100" end="90" center="auto" time="250" tween="cubic" easing="in">Hidden</animation>
            <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
            <!-- Card bg -->
            <control type="image">
                <left>0</left><top>0</top><width>1600</width><height>840</height>
                <texture colordiffuse="F01A1A1A" border="55">special://home/addons/plugin.video.milionar/resources/media/dialog_rounded_large.png</texture>
            </control>
            <!-- Header -->
            <control type="label">
                <left>40</left><top>18</top><width>1300</width><height>42</height>
                <font>font30_title</font>
                <label>$INFO[Window.Property(WCS.EditProgress.SeriesName)]</label>
                <textcolor>FFFFFFFF</textcolor>
                <scroll>true</scroll><scrollspeed>40</scrollspeed>
            </control>
            <control type="label">
                <left>40</left><top>62</top><width>1300</width><height>22</height>
                <font>font10</font>
                <label>Vyberte epizodu, kterou chcete sledovat příště</label>
                <textcolor>66FFFFFF</textcolor>
            </control>
            <!-- Close button -->
            <control type="button" id="9420">
                <left>1380</left><top>15</top><width>180</width><height>65</height>
                <font>font14_bold</font>
                <label>Zavřít</label>
                <align>center</align><aligny>center</aligny>
                <ondown>9401</ondown>
                <texturefocus border="32" colordiffuse="FFFF3B30">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                <texturenofocus border="32" colordiffuse="40FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                <animation effect="zoom" start="108" end="100" center="auto" time="150">UnFocus</animation>
            </control>
            <!-- Loading -->
            <control type="label">
                <left>0</left><top>0</top><width>1600</width><height>840</height>
                <font>font30_title</font><label>Načítání...</label>
                <textcolor>60FFFFFF</textcolor>
                <align>center</align><aligny>center</aligny>
                <visible>String.IsEqual(Window.Property(WCS.EditProgress.Loading),true)</visible>
            </control>
            <!-- Seasons container (clipped, 4 visible) -->
            <control type="group">
                <left>40</left><top>100</top>
                <width>1520</width><height>700</height>
                <animation effect="slide" start="0,0" end="0,-175" time="300" tween="sine" easing="inout" condition="Integer.IsEqual(Window.Property(WCS.EditProgress.ScrollRow),1)">Conditional</animation>
                <animation effect="slide" start="0,0" end="0,-350" time="300" tween="sine" easing="inout" condition="Integer.IsEqual(Window.Property(WCS.EditProgress.ScrollRow),2)">Conditional</animation>
                <animation effect="slide" start="0,0" end="0,-525" time="300" tween="sine" easing="inout" condition="Integer.IsEqual(Window.Property(WCS.EditProgress.ScrollRow),3)">Conditional</animation>
                <animation effect="slide" start="0,0" end="0,-700" time="300" tween="sine" easing="inout" condition="Integer.IsEqual(Window.Property(WCS.EditProgress.ScrollRow),4)">Conditional</animation>
                <animation effect="slide" start="0,0" end="0,-875" time="300" tween="sine" easing="inout" condition="Integer.IsEqual(Window.Property(WCS.EditProgress.ScrollRow),5)">Conditional</animation>
                <animation effect="slide" start="0,0" end="0,-1050" time="300" tween="sine" easing="inout" condition="Integer.IsEqual(Window.Property(WCS.EditProgress.ScrollRow),6)">Conditional</animation>
                <!-- SEASON 1 (9401) -->
                <control type="group">
                    <left>0</left><top>0</top>
                    <visible>Integer.IsGreaterOrEqual(Window.Property(WCS.EditProgress.SeasonCount),1) + String.IsEqual(Window.Property(WCS.EditProgress.Season1.Show),true)</visible>
                    <control type="label">
                        <left>0</left><top>0</top><width>400</width><height>25</height>
                        <font>font12_bold</font>
                        <label>$INFO[Window.Property(WCS.EditProgress.Season1.Label)]</label>
                        <textcolor>BBFFFFFF</textcolor>
                    </control>
                    <control type="list" id="9401">
                        <left>0</left><top>55</top><width>1520</width><height>130</height>
                        <orientation>horizontal</orientation>
                        <scrolltime tween="cubic" easing="out">300</scrolltime>
                        <onup>9420</onup>
                        <ondown>9402</ondown>
                        <itemlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </itemlayout>
                        <focusedlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture border="8" colordiffuse="BBFFFFFF">special://home/addons/plugin.video.milionar/resources/media/ep_border_focus.png</texture>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                                <visible>Control.HasFocus(9401)</visible>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </focusedlayout>
                    </control>
                </control>
                <!-- SEASON 2 (9402) -->
                <control type="group">
                    <left>0</left><top>175</top>
                    <visible>Integer.IsGreaterOrEqual(Window.Property(WCS.EditProgress.SeasonCount),2) + String.IsEqual(Window.Property(WCS.EditProgress.Season2.Show),true)</visible>
                    <control type="label">
                        <left>0</left><top>0</top><width>400</width><height>25</height>
                        <font>font12_bold</font>
                        <label>$INFO[Window.Property(WCS.EditProgress.Season2.Label)]</label>
                        <textcolor>BBFFFFFF</textcolor>
                    </control>
                    <control type="list" id="9402">
                        <left>0</left><top>55</top><width>1520</width><height>130</height>
                        <orientation>horizontal</orientation>
                        <scrolltime tween="cubic" easing="out">300</scrolltime>
                        <onup>9401</onup>
                        <ondown>9403</ondown>
                        <itemlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </itemlayout>
                        <focusedlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture border="8" colordiffuse="BBFFFFFF">special://home/addons/plugin.video.milionar/resources/media/ep_border_focus.png</texture>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                                <visible>Control.HasFocus(9402)</visible>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </focusedlayout>
                    </control>
                </control>
                <!-- SEASON 3 (9403) -->
                <control type="group">
                    <left>0</left><top>350</top>
                    <visible>Integer.IsGreaterOrEqual(Window.Property(WCS.EditProgress.SeasonCount),3) + String.IsEqual(Window.Property(WCS.EditProgress.Season3.Show),true)</visible>
                    <control type="label">
                        <left>0</left><top>0</top><width>400</width><height>25</height>
                        <font>font12_bold</font>
                        <label>$INFO[Window.Property(WCS.EditProgress.Season3.Label)]</label>
                        <textcolor>BBFFFFFF</textcolor>
                    </control>
                    <control type="list" id="9403">
                        <left>0</left><top>55</top><width>1520</width><height>130</height>
                        <orientation>horizontal</orientation>
                        <scrolltime tween="cubic" easing="out">300</scrolltime>
                        <onup>9402</onup>
                        <ondown>9404</ondown>
                        <itemlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </itemlayout>
                        <focusedlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture border="8" colordiffuse="BBFFFFFF">special://home/addons/plugin.video.milionar/resources/media/ep_border_focus.png</texture>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                                <visible>Control.HasFocus(9403)</visible>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </focusedlayout>
                    </control>
                </control>
                <!-- SEASON 4 (9404) -->
                <control type="group">
                    <left>0</left><top>525</top>
                    <visible>Integer.IsGreaterOrEqual(Window.Property(WCS.EditProgress.SeasonCount),4) + String.IsEqual(Window.Property(WCS.EditProgress.Season4.Show),true)</visible>
                    <control type="label">
                        <left>0</left><top>0</top><width>400</width><height>25</height>
                        <font>font12_bold</font>
                        <label>$INFO[Window.Property(WCS.EditProgress.Season4.Label)]</label>
                        <textcolor>BBFFFFFF</textcolor>
                    </control>
                    <control type="list" id="9404">
                        <left>0</left><top>55</top><width>1520</width><height>130</height>
                        <orientation>horizontal</orientation>
                        <scrolltime tween="cubic" easing="out">300</scrolltime>
                        <onup>9403</onup>
                        <ondown>9405</ondown>
                        <itemlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </itemlayout>
                        <focusedlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture border="8" colordiffuse="BBFFFFFF">special://home/addons/plugin.video.milionar/resources/media/ep_border_focus.png</texture>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                                <visible>Control.HasFocus(9404)</visible>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </focusedlayout>
                    </control>
                </control>
                <!-- SEASON 5 (9405) -->
                <control type="group">
                    <left>0</left><top>700</top>
                    <visible>Integer.IsGreaterOrEqual(Window.Property(WCS.EditProgress.SeasonCount),5) + String.IsEqual(Window.Property(WCS.EditProgress.Season5.Show),true)</visible>
                    <control type="label">
                        <left>0</left><top>0</top><width>400</width><height>25</height>
                        <font>font12_bold</font>
                        <label>$INFO[Window.Property(WCS.EditProgress.Season5.Label)]</label>
                        <textcolor>BBFFFFFF</textcolor>
                    </control>
                    <control type="list" id="9405">
                        <left>0</left><top>55</top><width>1520</width><height>130</height>
                        <orientation>horizontal</orientation>
                        <scrolltime tween="cubic" easing="out">300</scrolltime>
                        <onup>9404</onup>
                        <ondown>9406</ondown>
                        <itemlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </itemlayout>
                        <focusedlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture border="8" colordiffuse="BBFFFFFF">special://home/addons/plugin.video.milionar/resources/media/ep_border_focus.png</texture>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                                <visible>Control.HasFocus(9405)</visible>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </focusedlayout>
                    </control>
                </control>
                <!-- SEASON 6 (9406) -->
                <control type="group">
                    <left>0</left><top>875</top>
                    <visible>Integer.IsGreaterOrEqual(Window.Property(WCS.EditProgress.SeasonCount),6) + String.IsEqual(Window.Property(WCS.EditProgress.Season6.Show),true)</visible>
                    <control type="label">
                        <left>0</left><top>0</top><width>400</width><height>25</height>
                        <font>font12_bold</font>
                        <label>$INFO[Window.Property(WCS.EditProgress.Season6.Label)]</label>
                        <textcolor>BBFFFFFF</textcolor>
                    </control>
                    <control type="list" id="9406">
                        <left>0</left><top>55</top><width>1520</width><height>130</height>
                        <orientation>horizontal</orientation>
                        <scrolltime tween="cubic" easing="out">300</scrolltime>
                        <onup>9405</onup>
                        <ondown>9407</ondown>
                        <itemlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </itemlayout>
                        <focusedlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture border="8" colordiffuse="BBFFFFFF">special://home/addons/plugin.video.milionar/resources/media/ep_border_focus.png</texture>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                                <visible>Control.HasFocus(9406)</visible>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </focusedlayout>
                    </control>
                </control>
                <!-- SEASON 7 (9407) -->
                <control type="group">
                    <left>0</left><top>1050</top>
                    <visible>Integer.IsGreaterOrEqual(Window.Property(WCS.EditProgress.SeasonCount),7) + String.IsEqual(Window.Property(WCS.EditProgress.Season7.Show),true)</visible>
                    <control type="label">
                        <left>0</left><top>0</top><width>400</width><height>25</height>
                        <font>font12_bold</font>
                        <label>$INFO[Window.Property(WCS.EditProgress.Season7.Label)]</label>
                        <textcolor>BBFFFFFF</textcolor>
                    </control>
                    <control type="list" id="9407">
                        <left>0</left><top>55</top><width>1520</width><height>130</height>
                        <orientation>horizontal</orientation>
                        <scrolltime tween="cubic" easing="out">300</scrolltime>
                        <onup>9406</onup>
                        <ondown>9408</ondown>
                        <itemlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </itemlayout>
                        <focusedlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture border="8" colordiffuse="BBFFFFFF">special://home/addons/plugin.video.milionar/resources/media/ep_border_focus.png</texture>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                                <visible>Control.HasFocus(9407)</visible>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </focusedlayout>
                    </control>
                </control>
                <!-- SEASON 8 (9408) -->
                <control type="group">
                    <left>0</left><top>1225</top>
                    <visible>Integer.IsGreaterOrEqual(Window.Property(WCS.EditProgress.SeasonCount),8) + String.IsEqual(Window.Property(WCS.EditProgress.Season8.Show),true)</visible>
                    <control type="label">
                        <left>0</left><top>0</top><width>400</width><height>25</height>
                        <font>font12_bold</font>
                        <label>$INFO[Window.Property(WCS.EditProgress.Season8.Label)]</label>
                        <textcolor>BBFFFFFF</textcolor>
                    </control>
                    <control type="list" id="9408">
                        <left>0</left><top>55</top><width>1520</width><height>130</height>
                        <orientation>horizontal</orientation>
                        <scrolltime tween="cubic" easing="out">300</scrolltime>
                        <onup>9407</onup>
                        <ondown>9409</ondown>
                        <itemlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </itemlayout>
                        <focusedlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture border="8" colordiffuse="BBFFFFFF">special://home/addons/plugin.video.milionar/resources/media/ep_border_focus.png</texture>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                                <visible>Control.HasFocus(9408)</visible>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </focusedlayout>
                    </control>
                </control>
                <!-- SEASON 9 (9409) -->
                <control type="group">
                    <left>0</left><top>1400</top>
                    <visible>Integer.IsGreaterOrEqual(Window.Property(WCS.EditProgress.SeasonCount),9) + String.IsEqual(Window.Property(WCS.EditProgress.Season9.Show),true)</visible>
                    <control type="label">
                        <left>0</left><top>0</top><width>400</width><height>25</height>
                        <font>font12_bold</font>
                        <label>$INFO[Window.Property(WCS.EditProgress.Season9.Label)]</label>
                        <textcolor>BBFFFFFF</textcolor>
                    </control>
                    <control type="list" id="9409">
                        <left>0</left><top>55</top><width>1520</width><height>130</height>
                        <orientation>horizontal</orientation>
                        <scrolltime tween="cubic" easing="out">300</scrolltime>
                        <onup>9408</onup>
                        <ondown>9410</ondown>
                        <itemlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </itemlayout>
                        <focusedlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture border="8" colordiffuse="BBFFFFFF">special://home/addons/plugin.video.milionar/resources/media/ep_border_focus.png</texture>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                                <visible>Control.HasFocus(9409)</visible>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </focusedlayout>
                    </control>
                </control>
                <!-- SEASON 10 (9410) -->
                <control type="group">
                    <left>0</left><top>1575</top>
                    <visible>Integer.IsGreaterOrEqual(Window.Property(WCS.EditProgress.SeasonCount),10) + String.IsEqual(Window.Property(WCS.EditProgress.Season10.Show),true)</visible>
                    <control type="label">
                        <left>0</left><top>0</top><width>400</width><height>25</height>
                        <font>font12_bold</font>
                        <label>$INFO[Window.Property(WCS.EditProgress.Season10.Label)]</label>
                        <textcolor>BBFFFFFF</textcolor>
                    </control>
                    <control type="list" id="9410">
                        <left>0</left><top>55</top><width>1520</width><height>130</height>
                        <orientation>horizontal</orientation>
                        <scrolltime tween="cubic" easing="out">300</scrolltime>
                        <onup>9409</onup>
                        <ondown>noop</ondown>
                        <itemlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </itemlayout>
                        <focusedlayout width="140" height="125">
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture diffuse="special://home/addons/plugin.video.milionar/resources/media/still_mask_rounded.png" fallback="special://home/addons/plugin.video.milionar/resources/media/placeholder_poster.png">$INFO[ListItem.Art(thumb)]</texture>
                                <aspectratio scalediffuse="false">scale</aspectratio>
                                <colordiffuse>$INFO[ListItem.Property(dimcolor)]</colordiffuse>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                            </control>
                            <control type="image">
                                <left>5</left><top>0</top><width>130</width><height>85</height>
                                <texture border="8" colordiffuse="BBFFFFFF">special://home/addons/plugin.video.milionar/resources/media/ep_border_focus.png</texture>
                                <animation effect="zoom" start="100" end="110" center="auto" time="200" tween="cubic" easing="out">Focus</animation>
                                <animation effect="zoom" start="110" end="100" center="auto" time="150" tween="cubic" easing="in">UnFocus</animation>
                                <visible>Control.HasFocus(9410)</visible>
                            </control>
                            <control type="label">
                                <left>5</left><top>89</top><width>130</width><height>25</height>
                                <font>font12</font>
                                <label>$INFO[ListItem.Property(ep_label)]</label>
                                <textcolor>BBFFFFFF</textcolor>
                                <align>center</align>
                            </control>
                        </focusedlayout>
                    </control>
                </control>
            </control>
        </control>


        <!-- ==================================================================================== -->
        <!-- MILIONAR GAME DIALOG (Top-layer overlay) -->
        <!-- ==================================================================================== -->

        <!-- Dim overlay -->
        <control type="group">
            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.Game.Active))</visible>
            <animation effect="fade" start="0" end="100" time="250">Visible</animation>
            <animation effect="fade" start="100" end="0" time="200">Hidden</animation>
            <control type="image">
                <left>0</left><top>0</top><width>1920</width><height>1080</height>
                <texture colordiffuse="85000000">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
            </control>
        </control>

        <!-- Game Panel -->
        <control type="group">
            <visible>!String.IsEmpty(Window.Property(WCS.MyTV.Game.Active))</visible>
            <animation effect="zoom" start="90" end="100" center="auto" time="300" tween="cubic" easing="out">Visible</animation>
            <animation effect="fade" start="0" end="100" time="250">Visible</animation>
            <animation effect="zoom" start="100" end="90" center="auto" time="250" tween="cubic" easing="in">Hidden</animation>
            <animation effect="fade" start="100" end="0" time="200">Hidden</animation>

            <!-- Main panel container 1600x720 -->
            <control type="group">
                <left>160</left>
                <top>115</top>
                <width>1600</width>
                <height>850</height>

                <!-- Panel background -->
                <control type="image">
                    <left>0</left><top>0</top><width>1600</width><height>850</height>
                    <texture border="34">special://home/addons/plugin.video.milionar/resources/media/dialog_rounded_large.png</texture>
                    <colordiffuse>F01A1A1A</colordiffuse>
                </control>

                <!-- ======= POSTER (left) ======= -->
                <control type="image">
                    <left>20</left>
                    <top>20</top>
                    <width>280</width>
                    <height>580</height>
                    <texture fallback="special://home/addons/plugin.video.milionar/resources/media/fanart_fallback.jpg" diffuse="special://home/addons/plugin.video.milionar/resources/media/game_poster_mask.png">$INFO[Window.Property(WCS.Game.Poster)]</texture>
                    <aspectratio scalediffuse="false">scale</aspectratio>
                </control>

                <!-- Logo overlay on poster (bottom) -->
                <control type="image">
                    <left>30</left>
                    <top>490</top>
                    <width>260</width>
                    <height>90</height>
                    <texture>$INFO[Window.Property(WCS.Game.Logo)]</texture>
                    <aspectratio aligny="bottom">keep</aspectratio>
                    <visible>!String.IsEmpty(Window.Property(WCS.Game.Logo))</visible>
                </control>

                <!-- Series name fallback (when no logo) -->
                <control type="label">
                    <left>30</left>
                    <top>530</top>
                    <width>260</width>
                    <height>60</height>
                    <font>font27</font>
                    <label>$INFO[Window.Property(WCS.Game.SeriesName)]</label>
                    <textcolor>white</textcolor>
                    <shadowcolor>black</shadowcolor>
                    <visible>String.IsEmpty(Window.Property(WCS.Game.Logo))</visible>
                </control>

                <!-- ======= LIFELINES HEADER (right-aligned, overflows left above content) ======= -->
                <control type="group">
                    <left>700</left>
                    <top>18</top>
                    <width>880</width>
                    <height>65</height>

                    <visible>String.IsEqual(Window.Property(WCS.Game.ShowAnswers),true)</visible>
                    <animation effect="fade" start="0" end="100" time="300">Visible</animation>
                    <animation effect="fade" start="100" end="0" time="200">Hidden</animation>

                    <!-- 50:50 button -->
                    <control type="button" id="9510">
                        <left>480</left>
                        <top>0</top>
                        <width>120</width>
                        <height>65</height>
                        <font>font14_bold</font>
                        <label>50:50</label>
                        <align>center</align><aligny>center</aligny>
                        <onup>noop</onup>
                        <ondown>9500</ondown>
                        <onleft>noop</onleft>
                        <onright>9511</onright>
                        <texturefocus border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                        <texturenofocus border="32" colordiffuse="40FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        <textcolor>AAFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                        <animation effect="zoom" start="108" end="100" center="auto" time="150">UnFocus</animation>
                        <enable>String.IsEmpty(Window.Property(WCS.Game.Lifeline5050))</enable>
                    </control>

                    <!-- Tip button -->
                    <control type="button" id="9511">
                        <left>620</left>
                        <top>0</top>
                        <width>120</width>
                        <height>65</height>
                        <font>font14_bold</font>
                        <label>Tip</label>
                        <align>center</align><aligny>center</aligny>
                        <onup>noop</onup>
                        <ondown>9501</ondown>
                        <onleft>9510</onleft>
                        <onright>9512</onright>
                        <texturefocus border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                        <texturenofocus border="32" colordiffuse="40FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        <textcolor>AAFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                        <animation effect="zoom" start="108" end="100" center="auto" time="150">UnFocus</animation>
                        <enable>String.IsEmpty(Window.Property(WCS.Game.LifelineTip))</enable>
                    </control>

                    <!-- Audience poll button -->
                    <control type="button" id="9512">
                        <left>760</left>
                        <top>0</top>
                        <width>120</width>
                        <height>65</height>
                        <font>font14_bold</font>
                        <label>Diváci</label>
                        <align>center</align><aligny>center</aligny>
                        <onup>noop</onup>
                        <ondown>9501</ondown>
                        <onleft>9511</onleft>
                        <onright>noop</onright>
                        <texturefocus border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                        <texturenofocus border="32" colordiffuse="40FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        <textcolor>AAFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>
                        <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                        <animation effect="zoom" start="108" end="100" center="auto" time="150">UnFocus</animation>
                        <enable>String.IsEmpty(Window.Property(WCS.Game.LifelineAudience))</enable>
                    </control>
                </control>

                <!-- ======= ZEBRICEK / LADDER (right side) ======= -->
                <control type="group">
                    <left>1300</left>
                    <top>95</top>
                    <width>280</width>
                    <height>505</height>

                    <!-- Ladder background: rounded, semi-transparent -->
                    <control type="image">
                        <left>0</left><top>0</top><width>280</width><height>505</height>
                        <texture border="35" colordiffuse="20FFFFFF">special://home/addons/plugin.video.milionar/resources/media/game_ladder_bg.png</texture>
                    </control>

                    <!-- Ladder title -->
                    <control type="label">
                        <left>10</left><top>5</top><width>260</width><height>30</height>
                        <font>font10</font><label>ŽEBŘÍČEK</label>
                        <textcolor>50FFFFFF</textcolor><align>center</align><aligny>center</aligny>
                    </control>

                    <!-- Ladder rows: pill 260x48, gap=3, step=51. Title ends ~35. -->
                    <!-- L9=40, L8=91, L7=142, L6=193, L5=244, L4=295, L3=346, L2=397, L1=448 -->

                    <!-- Level 1: 1 000 Kc -->
                    <control type="image" id="9541">
                        <left>10</left><top>448</top><width>260</width><height>48</height>
                        <texture colordiffuse="$INFO[Window.Property(WCS.Game.Ladder.1)]">special://home/addons/plugin.video.milionar/resources/media/game_ladder_pill.png</texture>
                    </control>
                    <control type="label">
                        <left>10</left><top>448</top><width>260</width><height>48</height>
                        <font>font12</font><label>1 000 Kč</label>
                        <textcolor>$INFO[Window.Property(WCS.Game.Ladder.1.Color)]</textcolor>
                        <align>right</align><aligny>center</aligny><textoffsetx>15</textoffsetx>
                    </control>

                    <!-- Level 2: 2 000 Kc -->
                    <control type="image" id="9542">
                        <left>10</left><top>397</top><width>260</width><height>48</height>
                        <texture colordiffuse="$INFO[Window.Property(WCS.Game.Ladder.2)]">special://home/addons/plugin.video.milionar/resources/media/game_ladder_pill.png</texture>
                    </control>
                    <control type="label">
                        <left>10</left><top>397</top><width>260</width><height>48</height>
                        <font>font12</font><label>2 000 Kč</label>
                        <textcolor>$INFO[Window.Property(WCS.Game.Ladder.2.Color)]</textcolor>
                        <align>right</align><aligny>center</aligny><textoffsetx>15</textoffsetx>
                    </control>

                    <!-- Level 3: 5 000 Kc (milestone - easy complete) -->
                    <control type="image" id="9543">
                        <left>10</left><top>346</top><width>260</width><height>48</height>
                        <texture colordiffuse="$INFO[Window.Property(WCS.Game.Ladder.3)]">special://home/addons/plugin.video.milionar/resources/media/game_ladder_pill.png</texture>
                    </control>
                    <control type="label">
                        <left>10</left><top>346</top><width>260</width><height>48</height>
                        <font>font25_title</font><label>5 000 Kč</label>
                        <textcolor>$INFO[Window.Property(WCS.Game.Ladder.3.Color)]</textcolor>
                        <align>right</align><aligny>center</aligny><textoffsetx>15</textoffsetx>
                    </control>

                    <!-- Level 4: 10 000 Kc -->
                    <control type="image" id="9544">
                        <left>10</left><top>295</top><width>260</width><height>48</height>
                        <texture colordiffuse="$INFO[Window.Property(WCS.Game.Ladder.4)]">special://home/addons/plugin.video.milionar/resources/media/game_ladder_pill.png</texture>
                    </control>
                    <control type="label">
                        <left>10</left><top>295</top><width>260</width><height>48</height>
                        <font>font12</font><label>10 000 Kč</label>
                        <textcolor>$INFO[Window.Property(WCS.Game.Ladder.4.Color)]</textcolor>
                        <align>right</align><aligny>center</aligny><textoffsetx>15</textoffsetx>
                    </control>

                    <!-- Level 5: 20 000 Kc -->
                    <control type="image" id="9545">
                        <left>10</left><top>244</top><width>260</width><height>48</height>
                        <texture colordiffuse="$INFO[Window.Property(WCS.Game.Ladder.5)]">special://home/addons/plugin.video.milionar/resources/media/game_ladder_pill.png</texture>
                    </control>
                    <control type="label">
                        <left>10</left><top>244</top><width>260</width><height>48</height>
                        <font>font12</font><label>20 000 Kč</label>
                        <textcolor>$INFO[Window.Property(WCS.Game.Ladder.5.Color)]</textcolor>
                        <align>right</align><aligny>center</aligny><textoffsetx>15</textoffsetx>
                    </control>

                    <!-- Level 6: 50 000 Kc (milestone - medium complete) -->
                    <control type="image" id="9546">
                        <left>10</left><top>193</top><width>260</width><height>48</height>
                        <texture colordiffuse="$INFO[Window.Property(WCS.Game.Ladder.6)]">special://home/addons/plugin.video.milionar/resources/media/game_ladder_pill.png</texture>
                    </control>
                    <control type="label">
                        <left>10</left><top>193</top><width>260</width><height>48</height>
                        <font>font25_title</font><label>50 000 Kč</label>
                        <textcolor>$INFO[Window.Property(WCS.Game.Ladder.6.Color)]</textcolor>
                        <align>right</align><aligny>center</aligny><textoffsetx>15</textoffsetx>
                    </control>

                    <!-- Level 7: 100 000 Kc -->
                    <control type="image" id="9547">
                        <left>10</left><top>142</top><width>260</width><height>48</height>
                        <texture colordiffuse="$INFO[Window.Property(WCS.Game.Ladder.7)]">special://home/addons/plugin.video.milionar/resources/media/game_ladder_pill.png</texture>
                    </control>
                    <control type="label">
                        <left>10</left><top>142</top><width>260</width><height>48</height>
                        <font>font12</font><label>100 000 Kč</label>
                        <textcolor>$INFO[Window.Property(WCS.Game.Ladder.7.Color)]</textcolor>
                        <align>right</align><aligny>center</aligny><textoffsetx>15</textoffsetx>
                    </control>

                    <!-- Level 8: 500 000 Kc -->
                    <control type="image" id="9548">
                        <left>10</left><top>91</top><width>260</width><height>48</height>
                        <texture colordiffuse="$INFO[Window.Property(WCS.Game.Ladder.8)]">special://home/addons/plugin.video.milionar/resources/media/game_ladder_pill.png</texture>
                    </control>
                    <control type="label">
                        <left>10</left><top>91</top><width>260</width><height>48</height>
                        <font>font12</font><label>500 000 Kč</label>
                        <textcolor>$INFO[Window.Property(WCS.Game.Ladder.8.Color)]</textcolor>
                        <align>right</align><aligny>center</aligny><textoffsetx>15</textoffsetx>
                    </control>

                    <!-- Level 9: 1 000 000 Kc (top - jackpot) -->
                    <control type="image" id="9549">
                        <left>10</left><top>40</top><width>260</width><height>48</height>
                        <texture colordiffuse="$INFO[Window.Property(WCS.Game.Ladder.9)]">special://home/addons/plugin.video.milionar/resources/media/game_ladder_pill.png</texture>
                    </control>
                    <control type="label">
                        <left>10</left><top>40</top><width>260</width><height>48</height>
                        <font>font25_title</font><label>1 000 000 Kč</label>
                        <textcolor>$INFO[Window.Property(WCS.Game.Ladder.9.Color)]</textcolor>
                        <align>right</align><aligny>center</aligny><textoffsetx>15</textoffsetx>
                    </control>
                </control>

                <!-- ======= MAIN CONTENT AREA (center) ======= -->
                <control type="group">
                    <left>320</left>
                    <top>20</top>
                    <width>960</width>
                    <height>580</height>

                    <!-- Game title (same font as Series Detail title) -->
                    <control type="label">
                        <left>0</left>
                        <top>0</top>
                        <width>960</width>
                        <height>55</height>
                        <font>font45</font>
                        <label>$INFO[Window.Property(WCS.Game.Title)]</label>
                        <textcolor>white</textcolor>
                    </control>

                    <!-- Game text (moderator texts, feedback, explanations) -->
                    <control type="textbox" id="9521">
                        <left>0</left>
                        <top>70</top>
                        <width>960</width>
                        <height>510</height>
                        <font>font13</font>
                        <label>$INFO[Window.Property(WCS.Game.Text)]</label>
                        <textcolor>EEFFFFFF</textcolor>
                        <autoscroll delay="5000" time="2000" repeat="5000">true</autoscroll>
                    </control>
                </control>

                <!-- ======= FOOTER: QUESTION + ANSWERS (full width) ======= -->
                <!-- State: Playing - show question + 2x2 answer grid -->
                <control type="group">
                    <visible>String.IsEqual(Window.Property(WCS.Game.ShowAnswers),true)</visible>
                    <animation effect="fade" start="0" end="100" time="300">Visible</animation>
                    <animation effect="fade" start="100" end="0" time="200">Hidden</animation>

                    <!-- Question text -->
                    <control type="label" id="9520">
                        <left>20</left>
                        <top>600</top>
                        <width>1560</width>
                        <height>55</height>
                        <font>font14_bold</font>
                        <label>$INFO[Window.Property(WCS.Game.Question)]</label>
                        <textcolor>FFFFFFFF</textcolor>
                        <align>center</align>
                        <aligny>center</aligny>
                        <scroll>true</scroll>
                        <scrollspeed>40</scrollspeed>
                    </control>

                    <!-- Answer A (top-left) -->
                    <control type="button" id="9500">
                        <left>20</left>
                        <top>665</top>
                        <width>760</width>
                        <height>65</height>
                        <font>font14_bold</font>
                        <label>$INFO[Window.Property(WCS.Game.AnswerA)]</label>
                        <align>left</align><aligny>center</aligny>
                        <textoffsetx>25</textoffsetx>
                        <onup>9510</onup>
                        <ondown>9502</ondown>
                        <onleft>noop</onleft>
                        <onright>9501</onright>
                        <texturefocus border="32" colordiffuse="$INFO[Window.Property(WCS.Game.AnswerA.FocusColor)]">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                        <texturenofocus border="32" colordiffuse="$INFO[Window.Property(WCS.Game.AnswerA.Color)]">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        <textcolor>AAFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>

                    </control>

                    <!-- Answer B (top-right) -->
                    <control type="button" id="9501">
                        <left>800</left>
                        <top>665</top>
                        <width>760</width>
                        <height>65</height>
                        <font>font14_bold</font>
                        <label>$INFO[Window.Property(WCS.Game.AnswerB)]</label>
                        <align>left</align><aligny>center</aligny>
                        <textoffsetx>25</textoffsetx>
                        <onup>9511</onup>
                        <ondown>9503</ondown>
                        <onleft>9500</onleft>
                        <onright>noop</onright>
                        <texturefocus border="32" colordiffuse="$INFO[Window.Property(WCS.Game.AnswerB.FocusColor)]">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                        <texturenofocus border="32" colordiffuse="$INFO[Window.Property(WCS.Game.AnswerB.Color)]">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        <textcolor>AAFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>

                    </control>

                    <!-- Answer C (bottom-left) -->
                    <control type="button" id="9502">
                        <left>20</left>
                        <top>745</top>
                        <width>760</width>
                        <height>65</height>
                        <font>font14_bold</font>
                        <label>$INFO[Window.Property(WCS.Game.AnswerC)]</label>
                        <align>left</align><aligny>center</aligny>
                        <textoffsetx>25</textoffsetx>
                        <onup>9500</onup>
                        <ondown>noop</ondown>
                        <onleft>noop</onleft>
                        <onright>9503</onright>
                        <texturefocus border="32" colordiffuse="$INFO[Window.Property(WCS.Game.AnswerC.FocusColor)]">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                        <texturenofocus border="32" colordiffuse="$INFO[Window.Property(WCS.Game.AnswerC.Color)]">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        <textcolor>AAFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>

                    </control>

                    <!-- Answer D (bottom-right) -->
                    <control type="button" id="9503">
                        <left>800</left>
                        <top>745</top>
                        <width>760</width>
                        <height>65</height>
                        <font>font14_bold</font>
                        <label>$INFO[Window.Property(WCS.Game.AnswerD)]</label>
                        <align>left</align><aligny>center</aligny>
                        <textoffsetx>25</textoffsetx>
                        <onup>9501</onup>
                        <ondown>noop</ondown>
                        <onleft>9502</onleft>
                        <onright>noop</onright>
                        <texturefocus border="32" colordiffuse="$INFO[Window.Property(WCS.Game.AnswerD.FocusColor)]">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                        <texturenofocus border="32" colordiffuse="$INFO[Window.Property(WCS.Game.AnswerD.Color)]">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                        <textcolor>AAFFFFFF</textcolor>
                        <focusedcolor>FFFFFFFF</focusedcolor>

                    </control>
                </control>

                <!-- State: Menu - show action buttons (welcome, game over, etc.) -->
                <control type="group">
                    <visible>!String.IsEqual(Window.Property(WCS.Game.ShowAnswers),true)</visible>
                    <animation effect="fade" start="0" end="100" time="300">Visible</animation>
                    <animation effect="fade" start="100" end="0" time="200">Hidden</animation>

                    <!-- Menu buttons row -->
                    <control type="group">
                        <left>20</left>
                        <top>765</top>
                        <width>1560</width>
                        <height>65</height>

                        <!-- Button 1: Dynamic (Play/Continue/Retry) -->
                        <control type="button" id="9514">
                            <left>420</left>
                            <top>0</top>
                            <width>220</width>
                            <height>65</height>
                            <font>font14_bold</font>
                            <label>$INFO[Window.Property(WCS.Game.MenuBtn1)]</label>
                            <align>center</align><aligny>center</aligny>
                            <onup>noop</onup>
                            <ondown>noop</ondown>
                            <onleft>noop</onleft>
                            <onright>9515</onright>
                            <texturefocus border="32" colordiffuse="CC2997FF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                            <texturenofocus border="32" colordiffuse="25FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                            <textcolor>AAFFFFFF</textcolor>
                            <focusedcolor>FFFFFFFF</focusedcolor>
                            <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                            <animation effect="zoom" start="108" end="100" center="auto" time="150">UnFocus</animation>
                            <visible>!String.IsEmpty(Window.Property(WCS.Game.MenuBtn1))</visible>
                        </control>

                        <!-- Button 2: Dynamic (Rules/Back) -->
                        <control type="button" id="9515">
                            <left>660</left>
                            <top>0</top>
                            <width>220</width>
                            <height>65</height>
                            <font>font14_bold</font>
                            <label>$INFO[Window.Property(WCS.Game.MenuBtn2)]</label>
                            <align>center</align><aligny>center</aligny>
                            <onup>noop</onup>
                            <ondown>noop</ondown>
                            <onleft>9514</onleft>
                            <onright>9513</onright>
                            <texturefocus border="32" colordiffuse="90FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                            <texturenofocus border="32" colordiffuse="25FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                            <textcolor>AAFFFFFF</textcolor>
                            <focusedcolor>FFFFFFFF</focusedcolor>
                            <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                            <animation effect="zoom" start="108" end="100" center="auto" time="150">UnFocus</animation>
                            <visible>!String.IsEmpty(Window.Property(WCS.Game.MenuBtn2))</visible>
                        </control>

                        <!-- Button 3: End game / Close -->
                        <control type="button" id="9513">
                            <left>900</left>
                            <top>0</top>
                            <width>220</width>
                            <height>65</height>
                            <font>font14_bold</font>
                            <label>Konec hry</label>
                            <align>center</align><aligny>center</aligny>
                            <onup>noop</onup>
                            <ondown>noop</ondown>
                            <onleft>9515</onleft>
                            <onright>noop</onright>
                            <texturefocus border="32" colordiffuse="FFFF3B30">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturefocus>
                            <texturenofocus border="32" colordiffuse="25FFFFFF">special://home/addons/plugin.video.milionar/resources/media/btn_rounded_dialog.png</texturenofocus>
                            <textcolor>AAFFFFFF</textcolor>
                            <focusedcolor>FFFFFFFF</focusedcolor>
                            <animation effect="zoom" start="100" end="108" center="auto" time="150">Focus</animation>
                            <animation effect="zoom" start="108" end="100" center="auto" time="150">UnFocus</animation>
                        </control>
                    </control>
                </control>

                <!-- Hidden focus trap (for loading states) -->
                <control type="button" id="9530">
                    <left>-100</left><top>-100</top><width>1</width><height>1</height>
                    <texturefocus></texturefocus><texturenofocus></texturenofocus>
                    <onup>noop</onup><ondown>noop</ondown>
                    <onleft>noop</onleft><onright>noop</onright>
                    <onclick>noop</onclick>
                </control>
            </control>
        </control>

    </controls>
</window>
