<window type="dialog">
    <defaultcontrol>2</defaultcontrol>
    <coordinates>
        <left>0</left>
        <top>0</top>
    </coordinates>
    <controls>
        <!-- Background Texture -->
        <control type="image">
            <texture>$INFO[Window().Property(texture.white)]</texture>
            <colordiffuse>FF000000</colordiffuse>
        </control>
        <!-- Background -->
        <control type="image">
            <top>0</top>
            <left>0</left>
            <width>1920</width>
            <height>1080</height>
            <texture background="true">$INFO[Window().Property(item.art.fanart)]</texture>
        </control>

        <control type="image">
            <top>0</top>
            <left>0</left>
            <width>1920</width>
            <height>1080</height>
            <texture background="true">$INFO[Window().Property(texture.white)]</texture>
            <colordiffuse>CC000000</colordiffuse>
        </control>


        <!--&lt;!&ndash; Additional Background Difuse &ndash;&gt;-->
        <!--<control type="image">-->
            <!--<texture>$INFO[Window().Property(texture.white)]</texture>-->
            <!--<colordiffuse>8936353b</colordiffuse>-->
        <!--</control>-->

        <!-- Side Info -->
        <control type="group">
            <top>120</top>
            <left>1450</left>
            <control type="label">
                <top>-770</top>
                <width>400</width>
                <font>font10</font>
                <textcolor>AAFFFFFF</textcolor>
                <align>center</align>
                <aligny>center</aligny>
                <visible>!String.IsEmpty(Window().Property(item.info.season))</visible>
                <label>Season: [COLOR $INFO[Window().Property(settings.color)]]$INFO[Window().Property(item.info.season)] [/COLOR] | Episode: [COLOR $INFO[Window().Property(settings.color)]]$INFO[Window().Property(item.info.episode)][/COLOR]</label>
            </control>
            <control type="image">
                <width>400</width>
                <height>600</height>
                <top>130</top>
                <texture>$INFO[Window().Property(item.art.poster)]</texture>
            </control>

            <control type="group">
                <top>420</top>
                <control type="label">
                    <top>120</top>
                    <width>400</width>
                    <font>font12</font>
                    <textcolor>AAFFFFFF</textcolor>
                    <align>center</align>
                    <aligny>center</aligny>
                    <label>[COLOR $INFO[Window().Property(settings.color)]]$INFO[Window().Property(item.info.title)] [/COLOR]</label>
                </control>
                <control type="label">
                    <top>220</top>
                    <width>400</width>
                    <font>font10</font>
                    <textcolor>AAFFFFFF</textcolor>
                    <align>center</align>
                    <aligny>center</aligny>
                    <visible>String.IsEmpty(Window().Property(item.info.season))</visible>
                    <label>$ADDON[plugin.video.kaito 40230]: [COLOR $INFO[Window().Property(settings.color)]]$INFO[Window().Property(item.info.year)] [/COLOR] | $ADDON[plugin.video.kaito 40231]: [COLOR $INFO[Window().Property(settings.color)]]$INFO[Window().Property(item.info.rating)][/COLOR]
                    </label>
                </control>
                <control type="label">
                    <top>190</top>
                    <width>400</width>
                    <font>font10</font>
                    <textcolor>AAFFFFFF</textcolor>
                    <align>center</align>
                    <aligny>center</aligny>
                    <visible>!String.IsEmpty(Window().Property(item.info.season))</visible>
                    <label>$ADDON[plugin.video.kaito 40232]: [COLOR $INFO[Window().Property(settings.color)]]$INFO[Window().Property(item.info.aired)] [/COLOR]</label>
                </control>

                <control type="label">
                    <wrapmultiline>true</wrapmultiline>
                    <top>390</top>
                    <left>-25</left>
                    <height min="20" max="110">auto</height>
                    <width>450</width>
                    <font>font10</font>
                    <textcolor>AAFFFFFF</textcolor>
                    <align>center</align>
                    <aligny>top</aligny>
                    <label>$INFO[Window().Property(item.info.plot)]</label>
                </control>
            </control>

        </control>

        <!-- kaito Logo -->
        <control type="image" id="1001">
            <top>-900</top>
            <left>913</left>
            <width>75</width>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[Window().Property(kaito.logo)]</texture>
        </control>

        <!-- Grouplist Texture -->
        <control type="image">
            <visible>true</visible>
            <left>50</left>
            <top>200</top>
            <width>1300</width>
            <height>900</height>
            <border>5</border>
            <texture>$INFO[Window().Property(texture.white)]</texture>
            <colordiffuse>AA2e2d32</colordiffuse>
        </control>

        <!-- Sources List -->
        <control type="list" id="1000">
            <viewtype label="Sources">list</viewtype>
            <left>50</left>
            <top>200</top>
            <width>1300</width>
            <height>890</height>
            <orientation>vertical</orientation>
            <focusposition>1</focusposition>
            <itemlayout height="120">
                <control type="label">
                    <top>10</top>
                    <left>10</left>
                    <width>1400</width>
                    <height>50</height>
                    <font>font12</font>
                    <textcolor>66FFFFFF</textcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <label>[B]$INFO[ListItem.Label][/B]</label>
                </control>

                <control type="label">
                    <top>90</top>
                    <left>400</left>
                    <width>350</width>
                    <height>50</height>
                    <font>font10</font>
                    <textcolor>AAFFFFFF</textcolor>
                    <align>left</align>
                    <label>$ADDON[plugin.video.kaito 40233]: [UPPERCASE][COLOR $INFO[Window().Property(settings.color)]]$INFO[ListItem.Property(debrid_provider)][/COLOR][/UPPERCASE]
                    </label>
                </control>
                <control type="label">
                    <top>60</top>
                    <left>10</left>
                    <width>350</width>
                    <height>50</height>
                    <font>font10</font>
                    <textcolor>AAFFFFFF</textcolor>
                    <align>left</align>
                    <label>$ADDON[plugin.video.kaito 40234]: [UPPERCASE][COLOR $INFO[Window().Property(settings.color)]]$INFO[ListItem.Property(size)][/COLOR][/UPPERCASE]
                    </label>
                </control>
                <control type="label">
                    <top>60</top>
                    <left>400</left>
                    <width>350</width>
                    <height>50</height>
                    <font>font10</font>
                    <textcolor>AAFFFFFF</textcolor>
                    <label>$ADDON[plugin.video.kaito 40235]: [UPPERCASE][COLOR $INFO[Window().Property(settings.color)]]$INFO[ListItem.Property(provider)][/COLOR][/UPPERCASE]
                    </label>
                </control>
                <control type="label">
                    <top>60</top>
                    <left>800</left>
                    <width>350</width>
                    <height>50</height>
                    <font>font10</font>
                    <textcolor>AAFFFFFF</textcolor>
                    <label>$ADDON[plugin.video.kaito 40236]: [UPPERCASE][COLOR $INFO[Window().Property(settings.color)]]$INFO[ListItem.Property(type)][/COLOR][/UPPERCASE]
                    </label>
                </control>
                <control type="label">
                    <top>90</top>
                    <left>10</left>
                    <width>350</width>
                    <height>50</height>
                    <font>font10</font>
                    <textcolor>AAFFFFFF</textcolor>
                    <align>left</align>
                    <font>font10</font>
                    <label>$ADDON[plugin.video.kaito 40237]: [UPPERCASE][COLOR $INFO[Window().Property(settings.color)]]$INFO[ListItem.Property(quality)][/COLOR][/UPPERCASE]
                    </label>
                </control>
                <control type="label">
                    <top>90</top>
                    <left>800</left>
                    <width>350</width>
                    <height>50</height>
                    <textcolor>AAFFFFFF</textcolor>
                    <font>font10</font>
                    <label>$ADDON[plugin.video.kaito 40238]: [UPPERCASE][COLOR $INFO[Window().Property(settings.color)]]$INFO[ListItem.Property(info)][/COLOR][/UPPERCASE]
                    </label>
                </control>
            </itemlayout>

            <focusedlayout height="120">
                <control type="image">
                    <width>100%</width>
                    <height>100%</height>
                    <texture>$INFO[Window().Property(texture.white)]</texture>
                    <colordiffuse>25d3d3d3</colordiffuse>
                </control>
                <control type="label">
                    <top>10</top>
                    <left>10</left>
                    <width>1400</width>
                    <height>50</height>
                    <font>font12</font>
                    <textcolor>FFFFFFFF</textcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <label>[B]$INFO[ListItem.Label][/B]</label>
                </control>
                <control type="label">
                    <top>90</top>
                    <left>400</left>
                    <width>350</width>
                    <height>50</height>
                    <font>font10</font>
                    <textcolor>FFFFFFFF</textcolor>
                    <align>left</align>
                    <label>$ADDON[plugin.video.kaito 40233]: [UPPERCASE][COLOR $INFO[Window().Property(settings.color)]]$INFO[ListItem.Property(debrid_provider)][/COLOR][/UPPERCASE]
                    </label>
                </control>
                <control type="label">
                    <top>60</top>
                    <left>10</left>
                    <width>350</width>
                    <height>50</height>
                    <font>font10</font>
                    <textcolor>FFFFFFFF</textcolor>
                    <align>left</align>
                    <label>$ADDON[plugin.video.kaito 40234]: [UPPERCASE][COLOR $INFO[Window().Property(settings.color)]]$INFO[ListItem.Property(size)][/COLOR][/UPPERCASE]
                    </label>
                </control>
                <control type="label">
                    <top>60</top>
                    <left>400</left>
                    <width>350</width>
                    <height>50</height>
                    <textcolor>FFFFFFFF</textcolor>
                    <font>font10</font>
                    <label>$ADDON[plugin.video.kaito 40235]: [UPPERCASE][COLOR $INFO[Window().Property(settings.color)]]$INFO[ListItem.Property(provider)][/COLOR][/UPPERCASE]
                    </label>
                </control>
                <control type="label">
                    <top>60</top>
                    <left>800</left>
                    <width>350</width>
                    <height>50</height>
                    <textcolor>FFFFFFFF</textcolor>
                    <font>font10</font>
                    <label>$ADDON[plugin.video.kaito 40236]: [UPPERCASE][COLOR $INFO[Window().Property(settings.color)]]$INFO[ListItem.Property(type)][/COLOR][/UPPERCASE]
                    </label>
                </control>
                <control type="label">
                    <top>90</top>
                    <left>10</left>
                    <width>350</width>
                    <height>50</height>
                    <font>font10</font>
                    <textcolor>FFFFFFFF</textcolor>
                    <align>left</align>
                    <label>$ADDON[plugin.video.kaito 40237]: [UPPERCASE][COLOR $INFO[Window().Property(settings.color)]]$INFO[ListItem.Property(quality)][/COLOR][/UPPERCASE]
                    </label>
                </control>
                <control type="label">
                    <top>90</top>
                    <left>800</left>
                    <width>350</width>
                    <height>50</height>
                    <textcolor>AAFFFFFF</textcolor>
                    <font>font10</font>
                    <label>$ADDON[plugin.video.kaito 40238]: [UPPERCASE][COLOR $INFO[Window().Property(settings.color)]]$INFO[ListItem.Property(info)][/COLOR][/UPPERCASE]
                    </label>
                </control>
            </focusedlayout>
        </control>

        <!--LAYOUT GRID-->
        <!--<control type="image">-->
        <!--<width>100%</width>-->
        <!--<height>100%</height>-->
        <!--<texture>$INFO[Window(13000).Property(test_pattern)]</texture>-->
        <!--<colordiffuse>55FFFFFF</colordiffuse>-->
        <!--</control>-->
    </controls>
</window>
