main {
	display: flex;
	flex-direction: row-reverse;
	background: #f6f6f6;
}

h1 {
	display: block;
	font-size: 240%;
	font-weight: 400;
	padding: 34px 48px 34px 48px;
	line-height: 130%;
}


/* =========
    Filters
   ========= */

.filters {
	flex-shrink: 0;
	background: rgba(0,0,0,0.05);
	color: rgba(0,0,0,0.9);
	cursor: default;
	padding: 34px 0;
	min-width: 236px;
}

.filters .section {
	display: block;
	padding: 0 32px 0 20px;
	transition: background 400ms;
}

.filters .section:hover {
	background: rgba(255,255,255,0.4);
}

.filters .section > ul {
	display: none;
}

.filters .section.expanded > ul {
	display: block;
	padding: 10px 0 24px 0;
}

.filters hr {
	border: none;
	height: 1px;
	width: 100%;
	margin-right: 16px;
	background: rgba(0,0,0,0.1);
}

.filters .title {
	display: flex;
	flex-direction: row;
	align-items: center;
	height: 36px;
	cursor: pointer;
}

.filters .title .expand {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 18px;
	height: 18px;
	margin: 0 20px 0 0;
	background: rgba(0,0,0,0.06);
	border-radius: 4px;
}

.filters .title .expand::before {
	position: absolute;
	content: '';
	background: rgba(0,0,0,0.6);
	height: 2px;
	width: 8px;
}

.filters .section:not(.expanded) .title .expand::after {
	position: absolute;
	content: '';
	background: rgba(0,0,0,0.6);
	height: 8px;
	width: 2px;
}

.filters .title h2 {
	text-transform: uppercase;
	font-size: 95%;
	color: rgba(0,0,0,0.8);
	white-space: nowrap;
}

.filters .section li {
	display: flex;
	flex-direction: row;
	align-items: center;
	height: 28px;
	font-size: 95%;
	font-weight: 400;
	transition: color 50ms;
	cursor: pointer;
	white-space: nowrap;
}

.filters .section li.hr {
	cursor: default;
	pointer-events: none;
}

.filters .section li label {
	cursor: pointer;
	pointer-events: none;
}

.filters .section li a {
	pointer-events: none;
}

.filters .section li.hidden,
.filters .section li.more-hidden {
	display: none;
}

.filters .section.more li.hidden,
.filters .section li.unhidden {
	display: flex;
}

.filters .section li.more {
	font-weight: 600;
	color: #0089fd;
	margin-left: 38px;
}

.filters .section li.more::after {
	content: 'See More';
}

.filters .section.more li.more::after {
	content: 'See Less';
}

.filters input {
	display: flex;
	align-items: center;
	justify-content: center;
	-webkit-appearance: none;
	-moz-appearance: none;
	-ms-appearance: none;
	appearance: none;
	cursor: pointer;
	width: 18px;
	height: 18px;
	margin: 0 20px 0 0;
	border: 2px solid rgba(0,0,0,0.1);
	pointer-events: none;
	transition: background 400ms, border-width 400ms, border-color 400ms;
}

.filters input[type='checkbox'] {
	border-radius: 3px;
}

.filters input[type='radio'] {
	border-radius: 100%;
}

.filters input:checked {
	background: #62d681;
	border-width: 0;
}

html[data-user-agent*='Edge'] .filters input:checked {
	background: none;
}

.filters input:checked::after {
	content: '';
	transform: rotate(45deg);
	height: 7px;
	width: 3px;
	border-bottom: 2px solid white;
	border-right: 2px solid white;
	margin-left: -1px;
	margin-top: -2px;
}

.filters input:checked + * {
	font-weight: 600;
}

.filters .section li:hover input:not(:checked) {
	background: rgba(255,255,255,0.6);
	border: 2px solid rgba(0,0,0,0.2);
}

.filters .section li:hover input:not(:checked) + * {
	color: #0089fd;
}

/* =================
    Applied Filters
   ================= */

.applied-filters {
	display: none;
	flex-direction: row;
	flex-wrap: wrap;
	margin: 0 48px 32px 48px;
	color: rgba(0,0,0,0.8);
}

.applied-filters li {
	display: flex;
	flex-direction: row;
	align-items: center;
	background: rgba(0,0,0,0.05);
	border-radius: 0 100px 100px 0;
	height: 60px;
	padding: 0 18px 0 16px;
	margin: 0 16px 16px 0;
	border-left: 4px solid #62d681;
	transition: background 400ms;
}

.applied-filters li:hover {
	background: rgba(0,0,0,0.03);
}

.applied-filters .icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	margin-right: 10px;
}

.applied-filters .text {
	font-size: 90%;
	margin-right: 14px;
}

.applied-filters .text h2 {
	text-transform: uppercase;
	margin-bottom: 6px;
	white-space: nowrap;
}

.applied-filters .text div {
	white-space: nowrap;
	max-width: 24vw;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-bottom: 4px;
	margin-bottom: -4px;
}

.applied-filters .remove {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.15);
	border-radius: 100%;
	width: 24px;
	height: 24px;
	font-size: 150%;
	font-weight: 700;
	color: #e9e9e9;
	padding-bottom: 1px;
	box-sizing: border-box;
	transition: background 200ms;
	cursor: pointer;
}

.applied-filters .remove:hover {
	background: #ca0000;
}

/* =======
    Cards
   ======= */

.results {
	width: 100%;
	cursor: default;
	min-width: 0;
}

.results .description {
	position: relative;
	margin: -8px 48px 40px 48px;
	font-size: 90%;
	opacity: 0;
}

.results.loaded .description {
	opacity: 1;
}

.results .description.empty {
	margin: 0;
	transition: margin 300ms ease-out;
}

.results .description .viewport {
	height: 3em;
	overflow: hidden;
	margin-right: 24px;
}

.results .description.more .viewport {
	height: auto;
}

.results .description.empty .viewport {
	height: 0;
}

.results .description .text {
	line-height: 1.5em;
	color: rgba(0,0,0, 0.6);
	margin-bottom: -16px;
}

.results .description .text strong {
	display: block;
	margin-bottom: -12px;
}

.results .description p {
	margin-bottom: 16px;
}

.results .description .more {
	display: none;
	cursor: pointer;
	position: absolute;
	top: 3px;
	right: 0;
	width: 16px;
	height: 16px;
	align-items: center;
	justify-content: center;
}

.results .description.has-more .more {
	display: flex;
}

.results .description .more:after {
	content: '';
	border: solid black;
	border-width: 0 2px 2px 0;
	display: inline-block;
	transform: rotate(45deg);
	width: 7px;
	height: 7px;
	margin-top: -5px;
}

.results .description .more:hover:after {
	border-color: #0089FE;
}

.results .description.more .more:after {
	transform: rotate(-135deg);
	margin-top: 4px;
}

.results .description .text.placeholder {
	animation-duration: 1.2s;
	animation-fill-mode: forwards;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	animation-name: placeholderGradient;
	background: linear-gradient(to right, rgba(0,0,0,0.05) 10%, rgba(0,0,0,0.11) 48%, rgba(0,0,0,0.11) 52%, rgba(0,0,0,0.05) 90%);
	background-size: 1000px;
}

.results .description .text .rect:nth-child(1) {
	border-top: 4px solid #f6f6f6;
	border-bottom: 8px solid #f6f6f6;
	border-right: 20px solid #f6f6f6;
	height: 14px;
}

.results .description .text .rect:nth-child(2) {
	height: 14px;
	border-right: 200px solid #f6f6f6;
}

.results .cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	position: relative;
	grid-gap: 12px;
	margin: 0 48px 48px 48px;
	opacity: 0;
}

.results.loaded .cards {
	opacity: 1;
}

html[data-user-agent*='rv:11'] .results .cards {
	display: flex;
	flex-wrap: wrap;
}

html[data-user-agent*='rv:11'] .results .card {
	width: 170px;
	margin-right: 12px;
	margin-bottom: 12px;
}

.results .card img:not(.lazy-hidden) {
	filter: brightness(100%);
	transition: opacity 400ms ease-out, filter 300ms;
}

.results .card:hover img:not(.lazy-hidden) {
	filter: brightness(120%);
}

.results .card .poster {
	position: relative;
	background: #1e1f21;
	padding-top: 150%;
}

.results .card .poster img {
	display: block;
	position: absolute;
	top: 0;
}

.results .card .content {
	min-height: 38px;
	padding: 14px 16px 16px 16px;
	background: white;
}

.results .card .content .title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	text-overflow: ellipsis;
	font-size: 90%;
	font-weight: 600;
	line-height: 1.4em;
	max-height: 40px;
	transition: color 200ms;
	overflow: hidden;
}

.results .card:hover .content .title {
	color: #0089fd;
}

.results .no-results {
	display: flex;
	justify-content: center;
	position: absolute;
	font-size: 200%;
	font-weight: 600;
	color: rgba(0,0,0,0.2);
	margin-top: -10px;
	line-height: 125%;
}

/* =====================
    Activity indicators
   ===================== */

.card.placeholder {
	overflow: hidden;
	position: relative;
	animation-duration: 1.2s;
	animation-fill-mode: forwards;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	animation-name: placeholderGradient;
	background: linear-gradient(to right, rgba(0,0,0,0.05) 10%, rgba(0,0,0,0.11) 48%, rgba(0,0,0,0.11) 52%, rgba(0,0,0,0.05) 90%);
	background-size: 1000px;
}

.card.placeholder .poster {
	background: none;
}

.card.placeholder .content {
	background: none;
	padding: 0;
}

.card.placeholder .content .rect {
	background: white;
}

.card.placeholder .content .rect:nth-child(1) {
	width: 100%;
	height: 18px;
}

.card.placeholder .content .rect:nth-child(2) {
	width: 16px;
	height: 12px;
	float: left;
}

.card.placeholder .content .rect:nth-child(3) {
	width: 25%;
	height: 12px;
	float: right;
}

.card.placeholder .content .rect:nth-child(4) {
	width: 100%;
	height: 8px;
	margin-top: 12px;
}

.card.placeholder .content .rect:nth-child(5) {
	width: 16px;
	height: 12px;
	float: left;
}

.card.placeholder .content .rect:nth-child(6) {
	width: 60%;
	height: 12px;
	float: right;
}

.card.placeholder .content .rect:nth-child(7) {
	width: 100%;
	height: 18px;
	margin-top: 12px;
}

@keyframes placeholderGradient {
	0%{ background-position: -500px 0; }
	100%{ background-position: 500px 0; }
}

.activity-indicator {
	display: flex;
	position: relative;
	align-items: center;
	width: 100%;
	height: 48px;
	margin-bottom: 48px;
	box-sizing: border-box;
	opacity: 0.4;
}

.activity-indicator .spinner {
	animation-delay: 0.5s;
	animation: fadein 0.8s;
}

@keyframes fadein {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ===============
    Media Queries
   =============== */

@media only screen and (min-width: 1600px) {
	
	.results .cards {
		grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
	}
	
}

@media only screen and (min-width: 1920px) {
	
	.filters {
		border-left: 1px solid rgba(0,0,0,0.06);
	}
	
}