.app-root {
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	color: #fff;
	font-family: system-ui, -apple-system, BlinkMacSystemFont,
	             "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
}

.player-container {
	width: 800px;
	max-width: 95%;
	background-color: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	position: relative;
	margin-top: 20px;
	margin-bottom: 40px;
}

.video-wrapper {
	position: relative;
	width: 100%;
	background: #000;
	cursor: pointer;
}

video {
	width: 100%;
	aspect-ratio: 16 / 9;
	display: block;
}

.play-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 5rem;
	color: rgba(255, 255, 255, 0.7);
	pointer-events: none;
	transition: opacity 0.3s;
	opacity: 0;
}

.video-wrapper:hover .play-overlay {
	opacity: 1;
}

.video-wrapper.playing .play-overlay {
	opacity: 0; /* Hide when playing */
}

.controls {
	padding: 0;
	background-color: #222;
}

.SubControls {
	padding-left: 15px;
	padding-right: 15px;
	padding-bottom: 5px;
}

.progress-bar-container {
	width: 100%;
	height: 8px;
	background-color: #444;
	cursor: pointer;
	border-radius: 4px;
	margin-bottom: 5px;
	position: relative;
}

.progress-bar {
	height: 100%;
	background-color: #e74c3c;
	width: 0%;
	border-radius: 4px;
	transition: width 0.1s linear;
}

.play-stop-buttons {
	display: flex;
	gap: 5px; /* small spacing only between play/stop */
	padding-top: 0px;
}

.buttons-row {
	padding-top: 1px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

button {
	background: #333;
	border: none;
	color: white;
	padding: 8px 15px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
	opacity: 0.8;
}

button:hover {
	opacity: 1;
}

.button {
    filter: grayscale(100%) sepia(100%) saturate(600%) hue-rotate(var(--hue));
}

    .button.orange {
        filter: grayscale(100%) sepia(100%) saturate(600%) hue-rotate(0deg);
    }

    .button.red {
        filter: grayscale(100%) sepia(100%) saturate(600%) hue-rotate(0deg);
    }

    .button.blue {
        filter: grayscale(100%) sepia(100%) saturate(600%) hue-rotate(0deg);
    }

    .button.green {
        filter: grayscale(100%) sepia(100%) saturate(600%) hue-rotate(90deg);
    }

    .button.blue {
        filter: grayscale(100%) sepia(100%) saturate(600%) hue-rotate(200deg);
    }

.time-display {
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.spacer {
	flex-grow: 1;
}

.audio-selector {
	display: flex;
	gap: 8px;
	align-items: flex-end; /* align all children (label + select) to bottom */
}

.audio-selector label {
	
	margin: 0;
}
	
select {
	background: #333;
	color: white;
	border: 1px solid #444;
	padding: 6px;
	border-radius: 4px;
	outline: none;
}

.volume-control {
	display: flex;
	align-items: center;
	gap: 8px;
}

input[type="range"] {
	width: 80px;
	cursor: pointer;
}

.icon-button {
	height: 22px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
}

.icon-button img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.TrackSelect {
	background: #333;
	color: white;
	border: 1px solid #444;
	border-radius: 4px;
	padding: 0 6px;
	margin-bottom: 1px;
	outline: none;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;

	height: 20px;          /* fixed height */
	line-height: 20px;     /* vertically center the text */	
}

#audioTrackSelect {
	width: 225px; /* fixed width for the select box */
}

#ccTrackSelect {
	width: 65px; /* fixed width for the select box */
}

.video-error {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	text-align: center;
	z-index: 50;
	font-size: 16px;
}
