<?xml version="1.0" encoding="UTF-8"?>
<window>
    <onload>Dialog.Close(fullscreeninfo,true)</onload>
    <onload>Dialog.Close(videoosd,true)</onload>
	
	<defaultcontrol always="true">3001</defaultcontrol>
    
	<controls>
	
        <control type="group">
			<right>20</right>
			<bottom>150</bottom>
			<width>600</width>
			<height>338</height>
			
            <animation type="WindowOpen" reversible="false">
                <effect type="fade" start="0" end="100" time="300" tween="cubic" easing="in"/>
                <effect type="slide" start="400%,0" end="0,0" time="400" tween="cubic" easing="in"/>
            </animation>
			
            <animation type="WindowClose" reversible="false">
                <effect type="slide" start="0,0" end="400%,0" time="400" tween="cubic" easing="in"/>
            </animation>
            				
			<!-- Background -->
			<control type="image">
				<top>0</top>
				<right>0</right>
				<width>100%</width>
				<height>100%</height>
				<texture colordiffuse="dd000000">$INFO[Window.Property(texture.white)]</texture>
			</control>
			
			<!-- Thumb -->
			<control type="group">
				<control type="image">
					<texture colordiffuse="FF12A0C7">$INFO[Window.Property(texture.white)]</texture>
					<visible>String.IsEmpty(Window.Property(item.art.landscape)) + String.IsEmpty(Window.Property(item.art.fanart)) + String.IsEmpty(Window.Property(item.art.thumb))</visible>
				</control>
				
				<control type="image">
					<texture>$INFO[Window.Property(item.art.landscape)]</texture>
					<aspectratio>scale</aspectratio>
					<visible>!String.IsEmpty(Window.Property(item.art.landscape))</visible>
				</control>
				
				<control type="image">
					<texture>$INFO[Window.Property(item.art.fanart)]</texture>
					<aspectratio>scale</aspectratio>
					<visible>String.IsEmpty(Window.Property(item.art.landscape))</visible>
				</control>
				
				<control type="image">
					<texture>$INFO[Window.Property(item.art.thumb)]</texture>
					<aspectratio>scale</aspectratio>
					<visible>String.IsEmpty(Window.Property(item.art.landscape)) + String.IsEmpty(Window.Property(item.art.fanart))</visible>
				</control>
			</control>

			<!-- Progress Bar -->
			<control type="progress" id="3014">
				<bottom>0</bottom>
				<height>5</height>
				<reveal>true</reveal>
				<righttexture></righttexture>
				<overlaytexture></overlaytexture>
				<lefttexture></lefttexture>
				<texturebg colordiffuse="33FFFFFF">white.png</texturebg>
				<midtexture colordiffuse="$INFO[Window.Property(settings.color)]">white.png</midtexture>
			</control>
				
			<!-- Shadow -->
			<control type="image">
				<height>100</height>
				<texture colordiffuse="99000000">white.png</texture>
			</control>

			<!-- Labels -->
			<control type="group">
				<top>20</top>
				<left>20</left>
				
				<!-- Details -->
				<control type="grouplist">
					<orientation>horizontal</orientation>
					<height>35</height>
					<itemgap>20</itemgap>
					
					<control type="label">
						<width>auto</width>
						<height>20</height>
						<font>font12</font>
						<textcolor>ffffffff</textcolor>
						<label>$INFO[Window.Property(item.info.title)]</label>
						<visible>!String.IsEmpty(Window.Property(item.info.title))</visible>
					</control>
					
					<control type="group">
						<visible>!String.IsEmpty(Window.Property(item.info.rating))</visible>
						<height>20</height>
						
						<control type="image">
							<width>20</width>
							<aspect>keep</aspect>
							<texture colordiffuse="Window.Property(settings.color)">star.png</texture>
						</control>
						
						<control type="label">
							<left>30</left>
							<label>$INFO[Window.Property(item.info.rating)]</label>
							<font>font12</font>
							<textcolor>ffffffff</textcolor>
						</control>
					</control>
				</control>
				
				<!-- Time -->
				<control type="group">
					<top>40</top>
					
					<control type="label">
						<height>20</height>
						<font>font12</font>
						<textcolor>ffffffff</textcolor>
						<label>$ADDON[plugin.video.seren 30559]</label>
						<visible>!Integer.IsGreater(Player.TimeRemaining,59)</visible>
					</control>
					<control type="label">
						<height>20</height>
						<font>font12</font>
						<textcolor>ffffffff</textcolor>
						<label>$ADDON[plugin.video.seren 30210]</label>
						<visible>Integer.IsGreater(Player.TimeRemaining,59)</visible>
					</control>
				</control>
				
				<!-- Buttons -->
				<control type="grouplist">
					<orientation>horizontal</orientation>
					<height>56</height>
					<bottom>20</bottom>
					<right>20</right>
					<itemgap>20</itemgap>
					<align>right</align>
					
					<!-- Play Now -->
					<control type="button" id="3001">
						<label>$ADDON[plugin.video.seren 30560]</label>
						<height>56</height>
						<width>auto</width>
						<font>font12</font>
						<textoffsetx>20</textoffsetx>
						<textcolor>ddffffff</textcolor>
						<focusedcolor>eeffffff</focusedcolor>
						<selectedcolor>ddffffff</selectedcolor>
						<align>center</align>
						<texturefocus border="10" colordiffuse="$INFO[Window.Property(settings.color)]">white.png</texturefocus>
						<texturenofocus border="10" colordiffuse="99000000">white.png</texturenofocus>
						<pulseonselect>no</pulseonselect>
					</control>
					
					<!-- Stop -->
					<control type="button" id="3003">
						<label>$ADDON[plugin.video.seren 30561]</label>
						<height>56</height>
						<width>auto</width>
						<font>font12</font>
						<textoffsetx>20</textoffsetx>
						<textcolor>ddffffff</textcolor>
						<focusedcolor>eeffffff</focusedcolor>
						<selectedcolor>ddffffff</selectedcolor>
						<align>center</align>
						<texturefocus border="10" colordiffuse="$INFO[Window.Property(settings.color)]">white.png</texturefocus>
						<texturenofocus border="10" colordiffuse="99000000">white.png</texturenofocus>
						<pulseonselect>no</pulseonselect>
					</control>
					
					<!-- Close -->
					<control type="button" id="3002">
						<label>$ADDON[plugin.video.seren 30459]</label>
						<height>56</height>
						<width>auto</width>
						<font>font12</font>
						<textoffsetx>20</textoffsetx>
						<textcolor>ddffffff</textcolor>
						<focusedcolor>eeffffff</focusedcolor>
						<selectedcolor>ddffffff</selectedcolor>
						<align>center</align>
						<texturefocus border="10" colordiffuse="$INFO[Window.Property(settings.color)]">white.png</texturefocus>
						<texturenofocus border="10" colordiffuse="99000000">white.png</texturenofocus>
						<pulseonselect>no</pulseonselect>
					</control>
				</control>
            </control>
        </control>
    </controls>
</window>