html, body {
	height: 100%;
}

body {
	margin: 0;
	padding: 0;
	font: 12px "Helvetica Neue",Helvetica,Arial,sans-serif;
	overflow: hidden;
}

h1 {
	font-weight: 600;
	text-align: center;
	opacity: 0.5;
	font-size: 1.5em;
}

#sidebar #logo,
#sidebar #logo:hover {
	display: block;
	width: 200px;
	height: 82px;
	background: url("http://twitch.tv/images/xarth/twitch_logo_white_102_33.png") transparent no-repeat center center;
	margin: 0 auto 5px;
	text-indent: -999px;
	cursor: pointer;
	overflow: hidden;
	opacity: .9;
}

#sidebar {
	position: absolute;
	top: 0;
	left: 0;
	width: 240px;
	box-sizing: border-box;
	height: calc(100% - 40px);
	z-index: 10;
	overflow: auto;
	box-shadow: 0 0.25em 0.25em rgba(0,0,0,0.5);
	padding-top: 2em;

	background-color: #19191F;
	color: #8c8c9c;
}

#sidebar.big {
	padding-bottom: 80px;
	height: 100%;
}


#sidebar a {
	text-decoration: none;
	color: #8C8C9C;
}

#sidebar a:hover,
a.ui-draggable-dragging {
	background-color: #14141B;
	color: #eee !important;
}

#streams {
	display: none;
	overflow: hidden;
}

#streams a {
	display: block;
	height: 50px;
	line-height: 50px;
	box-sizing: border-box;
	position: relative;
}

.description {
	height: 45px;
	display: inline-block;
	overflow-y: hidden;
}

.description .description-content {
	display: inline-block;
	height: 45px;
}

.description-content-1 {
	transition: margin-top 0.5s;
}

#online a .title {
	white-space: normal;
}

#online img {
	opacity: 0;
	-webkit-transition: opacity 250ms;
	   -moz-transition: opacity 250ms;
	    -ms-transition: opacity 250ms;
	     -o-transition: opacity 250ms;
	        transition: opacity 250ms;
}

#streams a:hover .description-content-1 {
	margin-top: -45px;
}


#streams a .name {
	font-weight: bold;
	margin-top: 0.15em;
}


#player,
#playercover,
#togglechat,
#iframe {
	position: absolute;
	top: 0;
	left: 240px;
	width: calc(100% - 240px);
	height: 100%;

	border: none;
}
.nocontrols #player {
	height: calc(100% + 28px);
}
#player {
	background: #333;
	transition: width 0.4s, height 0.4s;
}

#title {
	position: absolute;
	top: 20px;
	opacity: 0;
	color: white;
	font-size: 1.75em;
	font-weight: 300;
	font-family: 'Open Sans';
	text-align: center;
	width: 100%;
	text-shadow: 0 3px 0 #000, 0 -3px 0 #000, 3px 0 0 #000, -3px 0 0 #000, 0 1px 4px #000;

	transition: opacity 0.4s;
}

#playercover:hover #title {
	opacity: 1;
}

.chatty #playercover {
	width: calc(100% - 700px);
}

.nocontrols #playercover {
	height: 100%;
	/*background: linear-gradient(to left, #000, rgba(0,0,0,0));*/
}

#playercover {
	z-index: 1;
	cursor: pointer;
	width: calc(100% - 400px);
	min-width: 67%;
	height: calc(100% - 28px);
	pointer-events: none;
}
#togglechat {
	width: 400px;
	height: calc(100% - 350px) !important;
	max-width: 33%;
	left: auto;
	right: 0;
	background: linear-gradient(to left, #000, rgba(0,0,0,0));
	background: radial-gradient(ellipse at top right, #000, rgba(0,0,0,0) 66.67%);
	height: calc(100% - 28px);
	z-index: 2;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.4s, transform 0.4s;
}
#togglechat:hover {
	opacity: 1;
}
body.chatty #togglechat {
	transform: translateX(-300px);
}
body.chatty #chat {
	width: 300px;
}
body.chatty #player {
	width: calc(100% - 540px);
}
#chat {
	z-index: 3;

	position: absolute;
	right: 0;
	top: 0;
	width: 0;
	overflow: hidden;
	transition: width 0.4s;
}


#online a,
#offline a {
	padding-left: 60px;
	text-shadow: 0 1px 1px rgba(0,0,0,1);
}

#online a .avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;

	position: absolute;
	margin-left: -50px;
}

#online a {
	padding-top: 5px;
}
#online a span {
	line-height: 20px;
	display: block;

	margin-right: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#online a .game {
	font-size: 0.9em;
}
#offline a {
	height: 35px;
	line-height: 35px;
}
#online a .preview {
	display: none;
	height: 80px;
	margin-top: -10px;

	position: absolute;
	right: 20px;
}

#offline-heading {
	margin-top: 15px;
}

.load {
	display: block;
	margin: auto;
	margin-top: 60px;
}



#sidebar.big {
	width: 100%;
}
#sidebar.big #streams {
	width: 600px;
	max-width: 100%;
	margin: auto;
}

#sidebar.big #streams a {
	font-size: 16px;
	height: 100px;
	line-height: 100px;
	padding-left: 120px;
}

#sidebar.big .description {
	height: 80px;
}

#sidebar.big .description .description-content {
	height: 80px;
}

#sidebar.big #online a .title {
    display: inline-block;
    padding-right: 140px;
    white-space: normal;
}

#sidebar.big #online a:hover .description-content-1 {
	margin-top: -80px;
}



#sidebar.big #offline a {
	font-size: 16px;
	height: 50px;
	line-height: 50px;
}
#sidebar.big #online a {
	padding-top: 20px;
}
#sidebar.big #online a span {
	line-height: 30px;
}

#sidebar.big #streams a img.avatar {
	border-radius: 50%;
	width: 80px;
	height: 80px;
	margin-left: -100px;
	margin-top: -10px;
	box-shadow: 0 0.1em 0.25em rgba(0,0,0,0.5);
}

#sidebar.big #online a .preview {
	display: inline;
}

#hide-smallicon {
	position: absolute;
	z-index: 10;
	width: 20px;
	height: 20px;
	background-color: #fff;
	top: 5px;
	left: 245px;
}

#add {
	position: fixed;
	z-index: 20;
	bottom: 0;
	width: 240px;
	height: 40px;
	background: #19191F;
}


#add .input,
#add .button {
	height: 40px;
	box-sizing: border-box;
	padding: 5px 10px;
	display: inline-block;
	margin: 0;
	border: none;
	background: #14141B;
}
#add .input {
	width: 200px;
	position: absolute;
	color: #eee;
	font: inherit;
	text-transform: lowercase;
}
#add .input:focus,
#add .button:focus {
	outline: none;
}
#add .button {
	width: 40px;
	position: absolute;
	left: 200px;
	cursor: pointer;
	color: #ddd;
	font-size: 25px;
	font-weight: bold;
}
#add .button:hover {
	background: #1C1C25;
}



#add.big {
	width: 400px;
	left: 50%;
	padding-bottom: 20px;
	margin-left: -200px;
	height: 50px;

    transition: all 0.2s;
	-o-transition: all 0.2s;
}
#add.big .input {
	width: 350px;
	font-size: 16px;
	height: 50px;

    transition: all 0.2s;
    -o-transition: all 0.2s;
}
#add.big .button {
	left: 350px;
	font-size: 25px;
	height: 50px;
	width: 50px;

    transition: all 0.2s;
    -o-transition: all 0.2s;
}

#preview {
	width: 400px;
	height: 225px;
	position: fixed;
	right: 30px;
	bottom: 30px;
	overflow-y: hidden;
	display: none;
	transition: transform 0.4s;
}
body.chatty #preview {
	transform: translateX(-300px);
}

#previewoverlay {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1;
}
#previewplayer {
	height: calc(100% + 28px);
}

@media screen and (max-width: 600px) {
	#sidebar.big #streams a {
		padding-left: 30px;
	}
	#add.big {
		width: 100%;
		left: 0;
		margin-left: 0;
	}

}