/* "siren-montage.css" */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	position: relative;
	margin: 0;
	padding: 0;
	height: 100vh;
	width: 100vw;
	background-color: transparent; /* was black; avoid covering the page background */
	/* background-image: url('/alisha-assets/images/Galaxy.png'); */
	background-image: var(--nsfz-backdrop);
	background-repeat: repeat;
	background-size: auto;
	background-attachment: fixed;
	color: white;
	font-family: 'Courier New', monospace;
	text-align: center;
	overflow: hidden;
	font-size: 2.21vmin;
}

#layout {
	overflow: visible;

	display: flex;
	width: 100vw;
	height: 100vh;
	position: relative;
}

#sidebar {

	margin: 0;
	
	background-color: transparent; /* was black; avoid covering the page background */		
	background-repeat: repeat;
	background-size: auto;
	background-attachment: fixed;
	font-family: 'Courier New', monospace;

	width: 240px;
	height: 100vh;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
	padding: 1.5em 1em;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: white;
	z-index: 1000;
	font-size: 2.21vmin;
	text-align: center;
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
}

#sidebar-scroll {
	overflow-y: auto;
	flex-grow: 1;
	width: 100%;
}

#sidebar-banner {
	max-width: 240px;
	height: auto;
	position: relative;
	top: 0px;
	right: 0px;
	z-index: 200;
}

#decalContainer {
	position: absolute;
	bottom: 1em;
	left: calc(240px + 1em);
	top: auto;
	right: auto;
	width: 160px;
	height: 160px;
	z-index: 500;
	overflow: hidden;
}

#labelContainer {
	position: absolute;
	bottom: 0;
	left: calc(240px);
	top: auto;
	right: auto;
	width: calc(100vw - 240px);
	height: 160px;
	z-index: 501;
	overflow: visible; /* ✅ allow tracklabel to extend upward */
}

#sidebar-decal {
	position: absolute;
	bottom: 1em;
	left: 1em;
	width: 160px;
	height: auto;
	z-index: 200;
	pointer-events: none;
	opacity: 1.0;
	display: block; /* ✅ force out of inline flow */
}

#sidebar span {
	display: block;
	margin: 0.8em 0;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.85);
}

a {
	color: white;
	text-decoration: none;
	font-weight: bold;
	margin: 0.5em 0;
	padding: 0.3em 0.6em;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.08);
	transition: color 0.3s ease, background 0.3s ease;
}

a:hover {
	color: #ffd700;
	background: rgba(255, 255, 255, 0.15);
}

#sidebar-scroll {
	flex-grow: 1;
	overflow-y: auto;
	max-height: 100svh;
	-webkit-overflow-scrolling: touch;
}

#videoContainer {
	border: 5px solid rgba(0, 0, 0, 0.7);
	background-color: transparent;	/* was rgba(0,0,0,0.7); lets the animated backdrop show */
	position: absolute;
	top: 0;
	left: 240px;
	width: calc(100vw - 240px);
	height: 100vh;
	z-index: 1;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent 0px, black 120px);
	mask-image: linear-gradient(to right, transparent 0px, black 120px);
}

#videoContainer video {
	border: 5px solid rgba(0, 0, 0, 0.7);
	background-color: transparent;	/* was rgba(0,0,0,0.7); lets the animated backdrop show */
	position: absolute;
	top: 50%;
	left: 50%;
	transform-origin: center center;
	transform: translate(-50%, -50%);
	width: auto;
	height: auto;
	max-width: none;			/* ✅ allow scale > 1.0 */
	max-height: none;		 /* ✅ allow scale > 1.0 */
	object-fit: contain;
	display: none;
	opacity: 0;
	transition: opacity var(--crossfade-duration) linear;
	display: block;
	opacity: 1;
}

#videoContainer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	max-width: none;			/* ✅ allow scale > 1.0 */
	max-height: none;		 /* ✅ allow scale > 1.0 */
	object-fit: contain;
	background-color: transparent; /* was black; avoid covering the page background */
	z-index: -1;
}

#tracklabel {
	position: absolute;
	left: 50%;
	bottom: 12vh;
	transform: translateX(-50%);
	color: white;
	padding: 0.4em 0.8em;
	font-family: 'Courier New', monospace;
	border-radius: 6px;
	text-shadow: 1px 1px 3px black;
	pointer-events: none;
	z-index: 300;
	transition: opacity 0.5s ease;
	font-size: 1.2em;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0.9;

	/* 🚫 no word wrap */
	white-space: nowrap;
	word-break: normal;
	overflow: visible;
	/* text-overflow: ellipsis; */

	max-width: 90vw;
}

.outlined-text {
	font-size: 1.2em;
	font-weight: bold;
	text-shadow:
		-2px -1px 0 black,
		 2px -1px 0 black,
		-2px	1px 0 black,
		 2px	1px 0 black,
		-1px -2px 0 black,
		 1px -2px 0 black,
		-1px	2px 0 black,
		 1px	2px 0 black,
		-2px -2px 0 black,
		 2px -2px 0 black,
		-2px	2px 0 black,
		 2px	2px 0 black;
}

#audience-toggle {
	margin-top: 1em;
	text-align: center;
	width: 100%;
}

#audience-toggle label {
	cursor: pointer;
}

#audience-toggle input[type="checkbox"] {
	accent-color: var(--control-color);
}

@keyframes pulseflow {
	from {
		background-position: 0% 0%;
	}
	to {
		background-position: -100% 0%;
	}
}

@keyframes sinwave {
	from {
		background-position: 0% 0%;
	}
	to {
		background-position: 10% 0%;
	}
}

.avatar {
	display: block;
	text-align: center;
	opacity: 83%;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 0 6px rgba(0,0,0,0.5);
	background: white;
}

.text-decoration {
	font-size: 2.21vmin;
	color: white;
	font-weight: bold;
	text-shadow:
		-2px -2px 0 black,
		 2px -2px 0 black,
		-2px	2px 0 black,
		 2px	2px 0 black;
}

p + p {
	padding-top: 1em;
}

@media screen and (max-height: 500px) {
	#sidebar-scroll {
		max-height: 100svh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

#sidebar {
	display: flex;
	flex-direction: column;
	min-height: 100svh;
	overflow: hidden;
	min-width: 240px;
	max-width: 240px;
}

#sidebar-scroll {
	flex-grow: 1;
	overflow-y: auto;
	min-height: 0;
	max-height: 100svh;
	-webkit-overflow-scrolling: touch;
	min-width: 240px;
	max-width: 240px;
}

@supports (height: 100svh) {
	html, body {
		height: 100svh;
		overflow: auto !important;
	}

	#layout {
		height: 100svh !important;
	}
}

.author-scroll-box {
	flex-shrink: 0;
	max-height: 80px;
	min-height: 80px;
	overflow-y: auto;
	padding-right: 1em;
	margin-top: 1em;
	width: 100%;
}

.assist-scroll-box {
	max-height: 200px; /* Adjust to preferred height */
	min-height: 80px; /* Adjust to preferred height */
	overflow-y: auto;
	padding-right: 1em; /* Optional, avoids scrollbar overlap */
}

#playerBackdrop {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(80vw, 80vh);
	height: min(80vw, 80vh);
	object-fit: contain;
	z-index: -1;
	pointer-events: none;
	opacity: 1;
	background-color: transparent; /* not `none` */
}
