#vr-container {
	position: relative;
	width: 100%;
	height: 100%;
	background: #000000;
	overflow: hidden;
	display: block;
}

video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000000;
}

#playBtn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 80px;
	height: 80px;
	transition: opacity 0.3s ease, transform 0.2s ease;
	z-index: 10;
}

#playBtn:hover {
	transform: translate(-50%, -50%) scale(1.1);
}

#playBtn:active {
	transform: translate(-50%, -50%) scale(0.95);
}

#playBtn.hidden {
	opacity: 0;
	pointer-events: none;
}

#playBtn img {
	width: 100%;
	height: 100%;
}

/* Responsive sizing */
@media (max-width: 600px) {
	#playBtn {
		width: 60px;
		height: 60px;
	}
}

@media (min-width: 900px) {
	#playBtn {
		width: 100px;
		height: 100px;
	}
}

/* ========================================================
   COMMON / UTILITY CONTROLLER STYLES
   ======================================================== */
#panel {
	position: absolute;
	box-sizing: border-box;
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	pointer-events: none;
	font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
}

#panel.visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#panel svg.icon {
	width: 18px;
	height: 18px;
	display: inline-block;
	vertical-align: middle;
	pointer-events: none;
	flex-shrink: 0;
}

/* Prevent SVG child elements from intercepting button clicks */
#panel svg.icon * {
	pointer-events: none;
}

/* Unified premium button base styling */
#panel button {
	background: none;
	border: none;
	color: #888888;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: none !important;
	padding: 0;
	transform: scale(1);
}

#panel button:hover {
	color: #ffffff;
	transform: scale(1.08);
}

#panel button:active {
	transform: scale(0.95);
}

.shared-shift-label {
	display: none;
}

/* ========================================================
   STYLE 1: MINIMAL CAPSULE (style-capsule)
   ======================================================== */
#panel.style-capsule {
	bottom: 0;
	left: 0;
	transform: none;
	width: 100%;
	max-width: none;
}

.style-capsule .shared-panel-inner {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 12px 16px 10px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	box-sizing: border-box;
	width: 100%;
}

.style-capsule .shared-seekbar-row {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	order: 1;
}

.style-capsule .shared-seekbar {
	flex-grow: 1;
	height: 4px;
	background: rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	position: relative;
	cursor: pointer;
}

.style-capsule .shared-progress {
	height: 100%;
	background-color: #ffffff;
	border-radius: 999px;
}

.style-capsule .shared-time-cell {
	font-size: 0.72rem;
	color: #d2d2d2;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	white-space: nowrap;
}

.style-capsule .shared-controls-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	order: 2;
}

/* In Capsule: hide grid time cell */
.style-capsule .shared-time-cell-grid {
	display: none !important;
}

.style-capsule #play2,
.style-capsule #back,
.style-capsule #forward,
.style-capsule #mute,
.style-capsule #motion,
.style-capsule #fullscreen {
	position: relative;
	width: 34px;
	height: 34px;
	border-radius: 0;
	background: transparent !important;
	border: none !important;
	color: #ffffff;
}

.style-capsule #play2 {
	width: 40px;
	height: 40px;
}

.style-capsule #play2 svg.icon {
	width: 20px;
	height: 20px;
}

.style-capsule #back svg.icon,
.style-capsule #forward svg.icon,
.style-capsule #mute svg.icon,
.style-capsule #motion svg.icon,
.style-capsule #fullscreen svg.icon {
	width: 18px;
	height: 18px;
}

.style-capsule #motion {
	display: none;
}

.style-capsule #motion.active {
	color: #ffffff;
	opacity: 1;
}

.style-capsule .shared-btn:hover {
	background: transparent !important;
	transform: none !important;
}

.style-capsule .shared-btn:active {
	transform: scale(0.94);
}

.style-capsule .shared-shift-label {
	display: block;
	position: absolute;
	left: 50%;
	bottom: 100%;
	transform: translate(-50%, -4px);
	padding: 2px 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.02em;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.12s ease, transform 0.12s ease;
	white-space: nowrap;
}

.style-capsule .shared-btn.show-shift-label .shared-shift-label {
	opacity: 1;
	transform: translate(-50%, -8px);
}

@media (max-width: 768px) {
	.style-capsule #motion {
		display: flex;
	}

	.style-capsule .shared-panel-inner {
		padding: 10px 12px 8px;
	}

	.style-capsule .shared-time-cell {
		font-size: 0.7rem;
	}
}


/* ========================================================
   STYLE 2: SEGMENTED GRID (style-grid)
   ======================================================== */
#panel.style-grid {
	bottom: 5%;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	max-width: 420px;
}

.style-grid .shared-panel-inner {
	background-color: #0c0c0c;
	border: 1px solid #262626;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.style-grid .shared-seekbar-row {
	width: 100%;
}

/* In Grid: hide default time display and make seekbar cover top */
.style-grid .shared-seekbar-row .shared-time-cell {
	display: none !important;
}

.style-grid .shared-seekbar {
	height: 6px;
	background: #1a1a1a;
	position: relative;
	cursor: pointer;
	border-bottom: 1px solid #262626;
	width: 100%;
}

.style-grid .shared-progress {
	height: 100%;
	background-color: #ffffff;
}

.style-grid .shared-controls-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr) auto 1fr;
	height: 44px;
	align-items: stretch;
}

.style-grid .shared-btn {
	background: none;
	border: none;
	border-right: 1px solid #262626;
	color: #a3a3a3;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 0;
}

.style-grid .shared-btn:hover {
	background-color: #161616;
	color: #ffffff;
	transform: none !important;
}

.style-grid .shared-btn:active {
	background-color: #222222;
}

/* Display the grid-specific time cell on the right of the row */
.style-grid .shared-time-cell-grid {
	display: flex !important;
	font-size: 0.72rem;
	color: #ffffff;
	font-variant-numeric: tabular-nums;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	font-weight: 500;
}

.style-grid #fullscreen {
	border-right: none;
	border-left: 1px solid #262626;
}


/* ========================================================
   STYLE 3: EDGE THIN HEADER (style-thin)
   ======================================================== */
#panel.style-thin {
	bottom: 0;
	left: 0;
	width: 100%;
	max-width: none;
}

.style-thin .shared-panel-inner {
	background-color: rgba(10, 10, 10, 0.75);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	width: 100%;
	padding: 16px 32px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.style-thin .shared-seekbar-row {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
}

.style-thin .shared-seekbar {
	flex-grow: 1;
	height: 3px;
	background: rgba(255, 255, 255, 0.15);
	position: relative;
	cursor: pointer;
	transition: height 0.15s ease;
}

.style-thin .shared-seekbar:hover {
	height: 5px;
}

.style-thin .shared-progress {
	height: 100%;
	background-color: #ffffff;
}

.style-thin .shared-time-cell {
	font-size: 0.78rem;
	color: #a3a3a3;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

.style-thin .shared-controls-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.style-thin .shared-time-cell-grid {
	display: none !important;
}

/* Organize elements into left and right groups */
.style-thin #play2 {
	order: 1;
}
.style-thin #back {
	order: 2;
	margin-left: 12px;
}
.style-thin #forward {
	order: 3;
}
.style-thin #mute {
	order: 4;
	margin-left: auto;
}
.style-thin #fullscreen {
	order: 5;
	margin-left: 12px;
}

.style-thin .shared-btn {
	background: none;
	border: none;
	color: #a3a3a3;
	cursor: pointer;
	padding: 6px;
	border-radius: 0;
}

.style-thin .shared-btn svg.icon {
	width: 20px;
	height: 20px;
}

.style-thin .shared-btn:hover {
	color: #ffffff;
	transform: scale(1.08);
}


/* ========================================================
   STYLE 4: WIREFRAME FLOATING (style-wireframe)
   ======================================================== */
#panel.style-wireframe {
	bottom: 5%;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	max-width: 380px;
}

.style-wireframe .shared-panel-inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.style-wireframe .shared-seekbar-row {
	background-color: rgba(12, 12, 12, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid #262626;
	border-radius: 3px;
	padding: 6px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
}

.style-wireframe .shared-seekbar {
	flex-grow: 1;
	height: 3px;
	background: #222222;
	cursor: pointer;
	position: relative;
}

.style-wireframe .shared-progress {
	height: 100%;
	background-color: #ffffff;
}

.style-wireframe .shared-time-cell {
	font-size: 0.68rem;
	color: #ffffff;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

.style-wireframe .shared-controls-row {
	display: flex;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

.style-wireframe .shared-time-cell-grid {
	display: none !important;
}

.style-wireframe .shared-btn {
	background-color: rgba(12, 12, 12, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid #262626;
	border-radius: 3px;
	color: #ffffff;
	width: 44px;
	height: 44px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.style-wireframe .shared-btn:hover {
	border-color: #ffffff;
	background-color: rgba(20, 20, 20, 0.95);
	transform: scale(1.05);
}
