:root {
	--c-app-bg: #0b0f14;
	--c-bg-dark: #0b0f14;
	--c-surface: #141a23;
	--c-surface-2: #10161f;
	--c-surface-3: #1a2330;
	--c-text: #e6edf3;
	--c-text-muted: #a7b0bf;
	--c-accent: #7db7ff;
	--c-accent-contrast: #0b0f14;
	--c-hot: var(--c-surface-2);
	--c-sky: var(--c-surface-3);
	--radius-xl: 1.25rem;
	--radius-lg: 1rem;
	--radius-md: 0.75rem;
	--gap: 1rem;
	--row-h: 56px;
}

* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Fredoka", system-ui, -apple-system, Segoe UI, Roboto, Arial,
		sans-serif;
	font-size: clamp(16px, 2.2vw, 20px);
	line-height: 1.4;
	color: var(--c-text);
	background: var(--c-app-bg);
}

i {
	color: var(--c-accent);
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.noscript-msg {
	margin: 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid #2a3443;
	border-radius: 0.5rem;
	color: var(--c-text);
}

/* Containers */
.container,
.container-centered,
.container-rows {
	width: 100%;
	max-width: 72rem;
	margin-inline: auto;
	padding: 0 1rem;
}

.container {
	display: flex;
	gap: var(--gap);
	align-items: center;
	justify-content: space-between;
}
.container-centered {
	display: flex;
	align-items: center;
	justify-content: center;
}
.container-rows {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

/* Header */
header {
	background: var(--c-bg-dark);
	width: 100%;
	border-bottom: 1px solid var(--c-surface-3);
	padding: 4px;
}
.header .container {
	min-height: 64px;
}

.banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
}
.banner .logo {
	flex: 0 0 auto;
}
.banner .logo img {
	display: block;
	height: auto;
	width: auto;
	max-height: 48px;
}

.title-wrap {
	flex: 1 1 auto;
	text-align: center;
}
.event-title {
	color: var(--c-accent);
	font-size: clamp(1.25rem, 4.5vw, 2.2rem);
	margin: 0;
}

/* Main / player */
.main {
	background: var(--c-bg-dark);
	padding: 1rem 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.player {
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
}

#crumplplayer {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	border-radius: var(--radius-xl);
	overflow: hidden;
	background: #000;
}
#crumplplayer img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Twitch iframe */
.twitch .twitch-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
}
.twitch .twitch-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Live now banner */
.livenow {
	color: var(--c-accent-contrast);
	background: var(--c-accent);
	text-align: center;
	padding: 0.75rem 1rem;
	border-radius: var(--radius-lg);
	margin: 0 1rem;
}
.livenow a {
	color: var(--c-accent-contrast);
}

/* Info */
.info {
	background: var(--c-surface-2);
	padding: 1rem 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.blurb {
	background: var(--c-surface);
	color: var(--c-text);
	width: 100%;
	border-radius: var(--radius-xl);
	text-align: center;
	padding: 1rem;
	font-weight: 600;
}

.section-title {
	margin: 0.25rem 0 0.5rem;
	font-size: clamp(1.25rem, 4.5vw, 2.25rem);
	color: var(--c-text);
}
.section-subtitle {
	margin: 0 auto 0.5rem;
	max-width: 70ch;
	font-weight: 400;
	font-size: clamp(1.25rem, 4.5vw, 1.75rem);
	color: var(--c-text-muted);
}

.blurb-hint {
	display: inline-block;
	margin: 0.25rem 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px dotted rgba(231, 239, 247, 0.35);
	line-height: 1.2;
	color: var(--c-accent);
}
.blurb-hint:hover {
	border-bottom-color: rgba(231, 239, 247, 0.6);
}
.blurb-hint:focus-visible {
	outline: 2px dashed var(--c-accent);
	outline-offset: 2px;
}

.blurb-details {
	font-size: clamp(0.9rem, 2.2vw, 1.375rem);
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	margin: 0 auto 1rem;
	max-width: 45ch;
	color: var(--c-text);
}
.blurb-details a {
	color: var(--c-accent);
	text-decoration: underline;
}
.blurb-details ul,
.blurb-details ol {
	margin: 0.5rem 0 0.5rem 1.25rem;
}
.blurb-details li {
	margin-bottom: 0.3rem;
}
.blurb-details[hidden] {
	display: none !important;
}

/* Schedule */
.schedule {
	background: var(--c-surface-2);
	padding: 1rem 0;
}

.slots {
	background: var(--c-surface);
	border-radius: var(--radius-xl);
	font-weight: 900;
	padding: 1rem;
	width: 100%;
	color: var(--c-text);
	border: 1px solid #202a38;
}
.daytitle {
	text-align: center;
	margin: 0.25rem 0 1rem;
	color: var(--c-text-muted);
}

.daytitle h2 {
	margin-bottom: 0;
}

.rowscontainer {
	width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: stretch;
}

.row {
	width: 100%;
	height: var(--row-h);
	min-height: var(--row-h);
	background: var(--c-surface-3);
	display: flex;
	cursor: pointer;
	overflow: hidden;
	border: 1px solid #223044;
}

.row.empty {
	display: flex;
	opacity: 0.7;
}

.time-box {
	border: 1px solid var(--c-accent);
	color: #ffffff;
	flex: 0 0 28%;
	padding: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(0.85rem, 2vw, 1.2rem);
	background: #0f1722;
}

.time-box,
.djinfo {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.djinfo {
	background: var(--c-surface);
	border: 1px solid #223044;
	flex: 1 1 auto;
	padding: 0.5rem 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: clamp(1rem, 2.5vw, 1.5rem);
	color: var(--c-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
}
.djinfo > span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

.row.selected .djinfo {
	background: var(--c-accent);
	color: var(--c-accent-contrast);
}

.row.selected .time-box {
	background: var(--c-accent);
	color: var(--c-accent-contrast);
}
.row.live {
	padding: 0;
	background: var(--c-surface-2);
	box-shadow: inset 0 0 0 2px rgba(125, 183, 255, 0.2);
}

/* Footer */
.footer {
	background: var(--c-surface-2);
	padding: 1.25rem 0;
}
.fa-link {
	color: var(--c-text);
}

/* Toggle */
.cruise-control {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: center;
	padding-bottom: 1rem;
}
.switch-wrap {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
#switch {
	height: 0;
	width: 0;
	visibility: hidden;
	position: absolute;
}
#switch + label {
	--w: 70px;
	--h: 36px;
	--p: 4px;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	position: relative;
	user-select: none;
}
#switch + label .switch-text {
	font-size: 1rem;
	font-weight: 600;
	color: var(--c-text);
}
#switch + label .switch-knob {
	width: var(--w);
	height: var(--h);
	background: #303b4a;
	border-radius: 999px;
	border: 1px solid #1f2733;
	position: relative;
	display: inline-block;
}
#switch + label .switch-knob::after {
	content: "";
	position: absolute;
	top: var(--p);
	left: var(--p);
	width: calc(var(--h) - var(--p) * 2);
	height: calc(var(--h) - var(--p) * 2);
	background: #e6edf3;
	border-radius: 50%;
	transition: transform 0.25s ease, left 0.25s ease, width 0.2s ease;
}
#switch:checked + label .switch-knob {
	background: var(--c-accent);
	border-color: #2a5ea8;
}
#switch:checked + label .switch-knob::after {
	left: calc(100% - var(--p));
	transform: translateX(-100%);
}

/* Links & focus */
a {
	color: inherit;
	text-decoration: none;
}
a:focus-visible {
	outline: 2px dashed var(--c-accent);
	outline-offset: 2px;
}

/* main user day */
.local-date-label {
	color: var(--c-text-muted);
	font-weight: 400;
	font-size: 1em;
}

/* separators where local calendar day changes */
.date-sep {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	color: var(--c-text-muted);
	font-weight: 700;
	letter-spacing: 0.2px;
}

/* Responsive */
@media (min-width: 640px) {
	.container-rows {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.rowscontainer {
		gap: 0.75rem;
	}
	.time-box {
		flex-basis: 22%;
	}
}
@media (min-width: 900px) {
	.container {
		padding: 0 1.25rem;
	}
	.player {
		max-width: 1100px;
	}
	.container-rows {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (min-width: 1200px) {
	.banner .logo img {
		max-height: 64px;
	}
	.event-title {
		font-size: clamp(1.5rem, 3vw, 2.6rem);
	}
}
