﻿html {
	font-size: 62.5%;
	font-family: "Inter","Roobert","Helvetica Neue",Helvetica,Arial,sans-serif;
}
:root {
	--thumb-margin: 8px;
	--ch-height: 4rem;
	--sm-border: 1px solid rgba(127, 127, 127, 0.2);
	--fg-dark: #FFF;
	--fg-light: #333;
	--bg-dark: #222;
	--bg-light: #FFF;
	--btn-size: 28px;
}
body {
	font-size: 1.6rem;
}
.theme-dark {
	background: var(--bg-dark);
	color: var(--fg-dark);
}
.theme-light {
	background: var(--bg-light);
	color: var(--fg-light);
}
.player-page {
	display: flex;
	flex-direction: row;
	margin: 0;
	height: 100vh;
}
.player-page.chat-on-left {
	flex-direction: row-reverse;
}
.player-area {
	flex: auto;
	background: #000;
	color: #FFF;
	justify-content: center;
	align-items: center;
	display: flex;
}
.player-area iframe {
	width: 100%;
	height: 100%;
}
@media (prefers-color-scheme: dark) {
	body:not([class*="theme"]) {
		background: var(--bg-dark);
		color: var(--fg-dark);
	}
}
@media (prefers-color-scheme: light) {
	body:not([class*="theme"]) {
		background: var(--bg-light);
		color: var(--fg-light);
	}
}
.sidebar {
	width: 34rem;
	min-width: 34rem;
	flex: 0;
	display: flex;
	flex-direction: column;
}
body:not(.chat-on-left) .sidebar {
	border-left: var(--sm-border);
}
.chat-on-left .sidebar {
	border-right: var(--sm-border);
}
.chat-header {
	height: var(--ch-height);
	min-height: var(--ch-height);
	line-height: var(--ch-height);
	background: rgba(127, 127, 127, 0.1);
	border-bottom: var(--sm-border);
	flex: 0;
	padding: 0 0.5em;
	color: #808080;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
}
.chat-header span {
	flex: auto;
}
.chat-header input {
	flex: 0;
	appearance: none;
	width: var(--btn-size);
	min-width: var(--btn-size);
	height: var(--btn-size);
	margin: 0;
	cursor: pointer;
	opacity: 0.5;
}
.chat-header input:hover {
	opacity: 0.75;
}
.chat-header ~ div {
	display: none;
	flex: auto;
	scrollbar-width: thin;
	/* FIXME don't have this much control. need to specify a hard color for first */
	/*scrollbar-color: auto transparent;*/
	overflow-y: auto;
	flex-direction: column;
}
.chat-header ~ div::-webkit-scrollbar-track {
	background-color: transparent;
}
.sidebar[data-tab=Chat] .chat-area, .sidebar[data-tab=Info] .info-pane, .sidebar[data-tab=Settings] .settings {
	display: flex;
}
.chat-area.no-chat {
	text-align: center;
	padding: 1rem;
	font-style: italic;
	color: #808080;
}
.info-pane {
	padding: 8px;
	gap: 16px;
	align-items: start;
}
.info-pane .title {
	font-weight: bold;
	font-size: 1.5em;
}
.info-pane .desc {
	font-size: 1em;
}
.settings {
	padding: 4px 0;
	gap: 4px;
}
.settings summary {
	cursor: pointer;
	padding: 4px;
	padding-left: 8px;
}
.option {
	display: flex;
	flex-direction: row;
}
.option:hover {
	background: rgba(127, 127, 127, 0.1);
}
.option label {
	flex: auto;
	padding: 4px 8px;
}
.option input, .option select {
	flex: 0;
	margin: 0 6px 0 0;
}
.option input {
	margin-right: 10px;
}
.thumbnail {
	width: 240px;
	height: 135px;
	position: relative;
	background-size: cover;
}
.thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.thumbnail div {
	background: rgba(0, 0, 0, 0.75);
	color: #FFF;
	position: absolute;
	padding: 0.25rem 0.5rem;
	font-size: 1.3rem;
}
.thumbnail div:first-of-type {
	top: var(--thumb-margin);
	left: var(--thumb-margin);
}
.thumbnail div:last-of-type {
	bottom: var(--thumb-margin);
	right: var(--thumb-margin);
}
.boxart-page img {
	width: 150px;
	height: 200px;
	display: inline-block;
	margin: 8px;
	vertical-align: top;
	border: 1px solid #888;
}
.videos-page, .userlist-page {
	margin: 24px;
}
.videos-page > h1 {
	vertical-align: top;
	margin: 8px;
}
.videos-page .profile-pic {
	width: 100px;
	height: 100px;
	float: left;
	margin: 0 16px 16px 0;
}
.video-tile, .user-tile {
	display: inline-grid;
	grid-row-gap: 4px;
	color: inherit;
	text-decoration: none;
	box-sizing: content-box;
	align-content: start;
}
.video-tile:hover, .user-tile:hover {
	background: rgba(127, 127, 127, 0.2);
}
.video-tile {
	padding: 8px;
	width: 240px;
	font-size: 1.3rem;
}
.video-tile .title {
	font-weight: bold;
	font-size: 1.6rem;
	text-overflow: ellipsis;
	overflow-x: hidden;
	white-space: nowrap;
}
.collection:first-of-type {
	clear: both;
}
.collection summary {
	margin: 1rem 0 1rem 24px;
	font-size: 2.6rem;
	font-weight: bold;
	transition: text-indent 0.5s;
	list-style-position: outside;
	cursor: pointer;
}
.collection summary:hover {
	text-indent: 1em;
}
.collection > div {
	display: grid;
	grid-template-columns: repeat(auto-fill, 256px);
	justify-content: center;
}
.user-tile {
	padding: 24px;
}
.user-tile img {
	width: 300px;
	height: 300px;
}
.user-tile h1 {
	margin: 0;
}
.user-tile div {
	text-indent: 2rem;
}
.btn-theme-toggle {
	position: fixed;
	top: 8px;
	right: 8px;
	width: 48px;
	height: 48px;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	opacity: 0.2;
}
.btn-theme-toggle:hover {
	opacity: 0.4;
}
.no-js {
	width: 100vw;
	height: 100vh;
	display: flex;
	margin: 0;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-size: 4em;
}
.no-js::after {
	content: "This page requires Javascript";
	/* the animation is so the user isn't shown an error while the js loads and runs */
	animation: 0.4s errview;
}
@keyframes errview {
	from {
		opacity: 0;
	}
	95% {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
.chat-line {
	word-break: break-word;
	padding: .25rem .25rem .25rem .5rem;
	font-size: 1.3rem;
	line-height: 2rem;
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	box-sizing: border-box;
	align-items: flex-start;
}
.chat-line img {
	vertical-align: top;
}
.chat-line div {
	display: inline;
}
.chat-line .message > :first-child {
	padding-right: .5rem;
}
.chat-line .author {
	font-weight: 700;
}
.chat-line .timestamp {
	white-space: nowrap;
	font-size: 1.2rem;
	line-height: 1.5;
	margin-right: 0.5rem;
	cursor: pointer;
}
.chat-area[data-timestamps="never"] .timestamp, .chat-area[data-timestamps="hover"] .chat-line:not(:hover) .timestamp,
.chat-area[data-hide_bits="always"] .bit-badge, .chat-area[data-hide_bits="uncustomized"] .bit-badge:not(.custom),
.chat-area[data-hide_subs="always"] .sub-badge, .chat-area[data-hide_subs="uncustomized"] .sub-badge:not(.custom)
{
	display: none;
}

.chat-badge {
	margin-bottom: .15rem;
	margin-right: .3rem;
	vertical-align: middle;
	width: 18px;
	height: 18px;
}
.emote {
	display: none;
	overflow-y: visible;
}
.message div {
	display: inline-block;
	height: 1.3rem;
}
.ttv-emote {
	max-width: 28px;
	max-height: 28px;
}
.show_ttv_emotes .ttv-emote + *, .show_ffv_emotes .ffz-emote + *, .show_7tv_emotes .stv-emote + *, .show_bttv_emotes .bttv-emote + * {
	display: none;
}
.show_ttv_emotes .ttv-emote, .show_ffv_emotes .ffz-emote, .show_7tv_emotes .stv-emote, .show_bttv_emotes .bttv-emote {
	display: initial;
}
.hide_badges_prime .prime-badge, .hide_badges_event .event-badge, .hide_badges_misc .misc-badge {
	display: none;
}