html {
	background-image: url(/r/media/galaxy.png) !important;
}

* {
	cursor: none !important;
}

body {
	min-height: 100svh;
	width: 100%;
}


a:hover {
	background-size: 100%;
	border-color: white !important;
	background-color: #f0d8;
	text-shadow: 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000;
}

#cursor {
	position: fixed;
	opacity: 1;
	visibility: visible;
	pointer-events: none;
	height: 7vh;
	top: 0;
	left: 0;
	transform: translateX(-17%);
	transition-property: opacity, visibility;
	transition-duration: 250ms;
	transition-timing-function: ease-in-out;
}

#vi {
	--cursor-size: 10vh;
	position: fixed;
	opacity: 1;
	visibility: visible;
	pointer-events: none;
	height: var(--cursor-size);
	top: calc(var(--cursor-size) / 2 * -1);
	left: calc(var(--cursor-size) / 2 * -1);
	transition-property: opacity, visibility;
	transition-duration: 250ms;
	transition-timing-function: ease-in-out;
}


#loader,
#success,
#welcome {
	position: fixed;
	top: 25%;
	left: 50%;
	max-height: 50vh;
	max-width: 50vw;
	opacity: 1;
	transition: opacity 500ms ease-in-out;
	transition-property: opacity, visibility;
	transform: translate(-50%, -50%);
	z-index: -5;
	visibility: visible;
	text-shadow: 0 0 10px #f0d;
}

#loader.hidden,
#success.hidden,
#welcome.hidden {
	opacity: 0;
	visibility: hidden;
}

#loader #lbar {
	border: 1vh #f0d solid;
	border-radius: 3em;
	background: #f0d4;
	display: flex;
	overflow: hidden;
	height: 3em;
	width: 26vw;
	padding: 0;
}


#lb {
	background-color: #f0d8;
	margin: 0;
	display: inline-block;
	width: calc(100% / 256);
}


content {
	opacity: 0;
	visibility: hidden;
	transition: opacity 250ms ease-in-out 250ms;
	transition-property: opacity, visibility;
	align-items: center;
	flex-direction: column;
}

content.shown {
	opacity: 1;
	visibility: visible;
}

content::before {
	content: '';
	opacity: 0;
	background: url(/r/media/galaxy_blur.png);
	position: fixed;
	top: 0;
	left: 0;
	width: 100svw;
	height: 100svh;
	overflow: hidden;
	transition: opacity 500ms ease-in-out 500ms;
	background-size: cover;
	background-position: center;
	z-index: -10;
}

content.shown::before {
	opacity: 1;
}



#infoWrap {
	display: flex;
	width: 80vw;
	justify-content: space-around;
	flex-direction: row-reverse;
	margin-top: 4em;
}

#infoWrap>div {
	width: 50ch;
}


#title {
	margin: 0.3em auto;
}

#schedItem {
	border: .5vh #f0d solid;
	border-radius: 2em;
	padding: .5em 1ch;
	background-color: var(--background-c-25);
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 1vh;
	transition: all 150ms ease-in-out;
	transition-property: border, color, background;
}

#schedItem:hover {
	border-color: white;
	background-color: #f0d4;
}

#schedItem * {
	margin: 0;
	padding: 0;
}

#schedItem h2 {
	grid-column: span 2;
}

#links {
	align-items: center;
	max-width: 30ch;
}


group {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	margin-bottom: 2.5em;
}

group a {
	flex-basis: 70%;
}


group a#livelink {
	overflow: hidden;
	padding: 3em 2vw;
	padding-top: 2em;
	padding-bottom: 2em;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	background-blend-mode: overlay;

}

group #logo {
	height: 1.5em;
	margin: 0 1ch 0 0;
}

#links a {
	background-color: var(--background-c-25);
	background-position: left center;
	background-repeat: no-repeat;
	border: 0.25em #f0d solid;
	padding: 0.5em 0.5ch;
	border-radius: 3em;
	background-size: 2em;
	transition: all 150ms ease-in-out;
	text-shadow: 0 0 0 black;
	font-size: 1.3em;
}

#links a:hover {
	color: black;
	border-color: white !important;
	background-color: #f0d8;
	--shadow-color: #f9f;
	--spread: 7px;
	background-position: right;
	background-size: 5em;
	text-shadow: 0 0 var(--spread) var(--shadow-color), 0 0 var(--spread) var(--shadow-color), 0 0 var(--spread) var(--shadow-color), 0 0 var(--spread) var(--shadow-color), 0 0 var(--spread) var(--shadow-color), 0 0 var(--spread) var(--shadow-color), 0 0 var(--spread) var(--shadow-color), 0 0 var(--spread) var(--shadow-color), 0 0 var(--spread) var(--shadow-color), 0 0 var(--spread) var(--shadow-color);
}

#mediaWrap {
	display: flex;
	flex-direction: column;
	width: 90vw;
	align-items: center;
}


div#inner {
	width: max-content;
}

#media {
	font-size: 0.7em;
	overflow: overlay;
	width: 90vw;
	margin-bottom: 2em;
	mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}


#clips,
#vods {
	width: max-content;
	padding: 0px 7ch;
}


#clips a,
#vods a {
	font-size: 0.9em;
	margin: .5em 1ch;
	border: 0.25em solid;
	border-radius: 2em;
	display: inline-flex;
	transition: all 250ms ease-in-out;
	transition-property: border, color, background;
	aspect-ratio: 1;
	width: 35ch;
	height: 25em;
	flex-direction: column;
	justify-content: space-between;
}

#clips a {
	background-color: #0000ff38;
	border-color: blue;
}

#vods a {
	background-color: #ff00de47;
	border-color: #f0d;
}


#thumbs {
	position: relative;
	aspect-ratio: 16/9;
	width: 100%;
}

#thumb {
	width: 100%;
	opacity: 0;
	transition: opacity 400ms ease-in-out;
	border-radius: 2em 2em 0 0;
	position: absolute;
	top: 0;
	left: 0;
}

#thumb:first-child {
	opacity: 1 !important;
}

#thumb.show {
	opacity: 1;
}

#mediaWrap h3,
#mediaWrap h4 {
	margin: 0 auto;
	padding: 0 2ch;

}

#mediaWrap h4 {
	padding-bottom: .5em;
}

#embed {
	position: fixed;
	height: 100vh;
	width: 100vw;
	top: 0;
	left: 0;
	display: flex;
	opacity: 1;
	visibility: visible;
	transition-property: opacity, visibility;
	transition-duration: .25s;
	transition-timing-function: ease-in-out;
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(0.5vh) saturate(0.2);
	cursor: default !important;
}

#embed iframe {
	box-shadow: 0 0 10px 10px #f0d8;
	border-radius: 1.5em;
	width: min(160vh, 98vw);
	aspect-ratio: 16/9;
}

.hidden {
	opacity: 0 !important;
	visibility: hidden !important;
}


@media (orientation: portrait) {
	#infoWrap {
		flex-direction: column;
	}

	#cursor {
		display: none
	}

	#vi {
		display: none
	}

	h1 {
		color: #FFF;
		width: fit-content;
		margin: 0 auto;

	}

	#loader,
	#success,
	#welcome {
		max-width: 90vw;
	}

	#loader #lbar {
		border: 1vw #f0d solid;
	}

	content {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
		grid-template-areas:
			'first'
			'second'
			'third';
		margin: 0 auto;
		row-gap: 5vh;
		justify-items: center;
		overflow-y: auto;
		overflow-x: hidden;
		min-height: 100svh;
	}

	#links {
		grid-area: first
	}

	#links a {
		border-width: .125em;
		margin: 0 0 0.5em;
		padding-left: 3ch;
	}

	group {
		width: 100vw;
		flex-direction: row;
		justify-content: space-evenly;
		flex-wrap: wrap;
		margin: 0;
	}

	group a {
		flex-basis: 30%;
	}


	#infoWrap>div {
		width: 100%;
	}

	#schedItem {
		width: min();
	}

	#media {
		display: flex;
		justify-content: center;
	}

	content>div {
		width: 98vw !important;
	}

	#schedules>div:nth-of-type(n+4) {
		display: none
	}

	#vods,
	#clips {
		display: flex;
		flex-direction: column;
		padding: unset;
	}

	#vods a:nth-of-type(n+4),
	#clips a:nth-of-type(n+4) {
		display: none;
		visibility: hidden;
	}
}


@media (prefers-color-scheme: dark) {
	links a {
		background-blend-mode: screen;
	}
}