/* 360Viewer — frontend */

.v360-viewer {
	position: relative;
	width: 100%;
}

.v360-viewer__stage {
	width: 100%;
	background: #0b0d10;
	overflow: hidden;
}

/* Full-page background mode: the whole viewport is the panorama. */
.v360-viewer--fullpage {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	z-index: 0;
	margin: 0;
}

.v360-viewer--fullpage .v360-viewer__stage {
	position: absolute;
	inset: 0;
	height: 100% !important;
}

/* --- Hotspots --- */
.pnlm-hotspot.v360-hotspot {
	width: auto;
	height: auto;
	margin: 0;
	background: none;
}

.v360-hs {
	position: absolute;
	width: 16px;
	height: 16px;
	transform: translate(-50%, -50%);
	cursor: pointer;
	pointer-events: auto;
	user-select: none;
	font-family: "PP Neue Montreal V360", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

.v360-hs__dot {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--v360-dot, #fff);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--v360-dot, #fff) 30%, transparent), 0 2px 8px rgba(0, 0, 0, 0.5);
	transition: transform 0.25s ease;
}

.v360-hs:hover .v360-hs__dot {
	transform: scale(1.15);
}

.v360-hs__dot::before {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--v360-dot, #fff) 72%, transparent);
	animation: v360-pulse 2.4s ease-out infinite;
}

@keyframes v360-pulse {
	0% {
		transform: scale(0.6);
		opacity: 0.9;
	}
	100% {
		transform: scale(2.2);
		opacity: 0;
	}
}

/* --- OSMO-style hover preview card --- */
.v360-hs__card,
.v360-hs__card *,
.v360-hs__card *::before,
.v360-hs__card *::after {
	box-sizing: border-box;
}
.v360-hs__card {
	position: absolute;
	bottom: calc(100% + 14px);
	left: 50%;
	width: 210px;
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(10px) scale(0.94);
	transform-origin: bottom center;
	transition:
		opacity 0.28s ease,
		transform 0.42s cubic-bezier(0.2, 0.9, 0.25, 1.15),
		visibility 0.28s;
	pointer-events: auto;
	z-index: 10;
}

.v360-hs:hover .v360-hs__card {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0) scale(1);
}

/* Invisible bridge so the card survives the pointer travelling from dot to card. */
.v360-hs__bridge {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	height: 20px;
	pointer-events: auto;
}

.v360-hs__stage {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	perspective: 900px;
	margin-bottom: 8px;
}

/* Square glass card (passe-partout); tilts in 3D on hover to reveal the record. */
.v360-hs__media {
	position: absolute;
	inset: 0;
	z-index: 2;
	padding: 7%;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
	transition: transform 0.7s cubic-bezier(0.625, 0.05, 0, 1);
	transform-origin: center;
}
.v360-hs__media .glass-effect { border-radius: 15px; }
.v360-hs:hover .v360-hs__card:not([data-paused]) .v360-hs__media,
.v360-hs__card[data-state="live"] .v360-hs__media {
	transform: translateX(-4%) rotateY(-12deg) rotateX(2.5deg);
}

/* --- Vinyl record that slides out from behind the cover --- */
.v360-vinyl__record {
	position: absolute;
	top: 6%;
	left: 4%;
	height: 88%;
	aspect-ratio: 1;
	z-index: 1;
	pointer-events: none;
	transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.v360-hs:hover .v360-hs__card:not([data-paused]) .v360-vinyl__record,
.v360-hs__card[data-state="live"] .v360-vinyl__record {
	transform: translateX(55%) rotate(90deg);
}
.v360-vinyl__disc {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		repeating-radial-gradient(circle at center, rgba(8, 9, 12, 0.55) 0 1px, transparent 1px 4px),
		#15161c;
	box-shadow:
		inset 0.12em 0.14em 0.05em -0.12em rgba(255, 255, 255, 0.45),
		inset -0.12em -0.14em 0.05em -0.12em rgba(0, 0, 0, 0.5),
		0.3em 0.35em 1em -0.5em rgba(0, 0, 0, 0.65);
}
.v360-hs__card[data-state="live"] .v360-vinyl__disc {
	animation: v360-vinyl-spin 2.4s linear infinite;
}
@keyframes v360-vinyl-spin { to { transform: rotate(360deg); } }
.v360-vinyl__disc-label {
	width: 38%;
	height: 38%;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.v360-vinyl__disc::after {
	content: "";
	position: absolute;
	width: 5%;
	height: 5%;
	border-radius: 50%;
	background: #0b0d10;
}

/* --- Play button on the cover --- */
.v360-vinyl__play {
	position: absolute;
	z-index: 4;
	bottom: calc(7% + 5px);
	right: calc(7% + 5px);
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: #fff;
	color: #12141a;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
	transition: transform 0.3s ease, background 0.3s ease;
}
.v360-vinyl__play:hover { transform: scale(1.08); }
.v360-vinyl__play svg { width: 14px; height: 14px; display: block; }
.v360-vinyl__play .v360-icon-stop { display: none; }
.v360-hs__card[data-state="live"] .v360-vinyl__play { background: var(--v360-accent, #ff6a3d); color: #fff; }
.v360-hs__card[data-state="live"] .v360-vinyl__play .v360-icon-play { display: none; }
.v360-hs__card[data-state="live"] .v360-vinyl__play .v360-icon-stop { display: block; }

.v360-hs__img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 9px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Foot pill under the square card: label + navigation arrow. */
.v360-hs__label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 9px 8px 13px;
	border-radius: 13px;
	background: rgba(14, 16, 20, 0.82);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	backdrop-filter: blur(14px) saturate(1.3);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.v360-hs__label-text {
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.v360-hs__arrow {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	color: #12141a;
	background: var(--v360-dot, #fff);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}

.v360-hs:hover .v360-hs__arrow {
	transform: translateX(2px);
}

/* Song note as a CSS-only tooltip floating just to the LEFT of the album cover.
   Kept deliberately light so the vinyl card stays the hero — a delicate aside
   about the track that fades in with the card and points at the cover. */
.v360-hs__song {
	position: absolute;
	top: 50%;
	right: calc(100% + 13px);
	z-index: 5;
	width: 158px;
	padding: 9px 12px;
	border-radius: 12px;
	font-size: 11.5px;
	line-height: 1.45;
	font-style: italic;
	letter-spacing: 0.005em;
	text-align: left;
	color: rgba(255, 255, 255, 0.92);
	background: rgba(14, 16, 20, 0.82);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow:
		0 12px 30px rgba(0, 0, 0, 0.45),
		inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-50%) translateX(8px) scale(0.96);
	transform-origin: right center;
	transition:
		opacity 0.3s ease,
		transform 0.42s cubic-bezier(0.2, 0.9, 0.25, 1.15),
		visibility 0.3s;
	pointer-events: none;
}
/* Little caret on the right edge, pointing at the cover. */
.v360-hs__song::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 100%;
	transform: translateY(-50%);
	border: 7px solid transparent;
	border-left-color: rgba(14, 16, 20, 0.82);
}
.v360-hs:hover .v360-hs__song,
.v360-hs.is-open .v360-hs__song {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0) scale(1);
	transition-delay: 0.12s;
}
/* Flipped to the RIGHT of the cover when there's no room on the left (narrow
   screens). JS adds .is-flipped; the caret and slide-in direction mirror. */
.v360-hs__song.is-flipped {
	right: auto;
	left: calc(100% + 13px);
	transform-origin: left center;
	transform: translateY(-50%) translateX(-8px) scale(0.96);
}
.v360-hs__song.is-flipped::after {
	left: auto;
	right: 100%;
	border-left-color: transparent;
	border-right-color: rgba(14, 16, 20, 0.82);
}
.v360-hs:hover .v360-hs__song.is-flipped,
.v360-hs.is-open .v360-hs__song.is-flipped {
	transform: translateY(-50%) translateX(0) scale(1);
}
.v360-hs__song-note {
	font-style: normal;
	margin-right: 5px;
	opacity: 0.9;
	color: var(--v360-dot, #ffd34d);
}
.v360-hs__song-text {
	min-width: 0;
}

/* Hotspot description in the card. */
.v360-hs__desc {
	display: block;
	margin-top: 7px;
	padding: 8px 12px;
	border-radius: 11px;
	font-size: 12px;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.9);
	background: rgba(14, 16, 20, 0.72);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.v360-hs__tail {
	position: absolute;
	top: 100%;
	left: 50%;
	width: 0;
	height: 0;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: rgba(14, 16, 20, 0.9);
	filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.18));
}

/* Touch devices (iPhone/iPad) have no hover, so cards stay COLLAPSED and the
   visitor taps a dot to reveal that one card (tapping again or elsewhere closes
   it). Otherwise every hotspot would show its card at once and clutter the view. */
@media (hover: none) {
	.v360-hs__dot {
		width: 24px;
		height: 24px;
		inset: -4px;
	}
	/* Open the card below the dot (so a finger doesn't cover it). Collapsed by
	   default — it inherits opacity:0/visibility:hidden from the base rule. */
	.v360-hs__card {
		bottom: auto;
		top: calc(100% + 14px);
		transform: translateX(-50%) translateY(-8px) scale(0.94);
		max-width: 200px;
	}
	.v360-hs--rich .v360-hs__card {
		width: 170px;
	}
	.v360-hs.is-open .v360-hs__card {
		opacity: 1;
		visibility: visible;
		transform: translateX(-50%) translateY(0) scale(1);
	}
	/* Reveal the record + 3D tilt when opened by tap (mirrors the hover state). */
	.v360-hs.is-open .v360-hs__card:not([data-paused]) .v360-hs__media {
		transform: translateX(-4%) rotateY(-12deg) rotateX(2.5deg);
	}
	.v360-hs.is-open .v360-hs__card:not([data-paused]) .v360-vinyl__record {
		transform: translateX(55%) rotate(90deg);
	}
	.v360-hs.is-open .v360-hs__arrow {
		transform: translateX(2px);
	}
	.v360-hs__tail {
		top: auto;
		bottom: 100%;
		border-top-color: transparent;
		border-bottom-color: rgba(26, 29, 35, 0.86);
	}
}

/* =========================================================
   1.2.0 — OSMO-style controls, loader & fade-in
   ========================================================= */

/* Fade the panorama in (blur → sharp) once loaded. */
.v360-viewer .pnlm-render-container {
	opacity: 0;
	filter: blur(14px);
	transition: opacity 0.9s ease, filter 1.1s ease;
}
.v360-viewer__stage.is-loaded .pnlm-render-container {
	opacity: 1;
	filter: none;
}

/* Hide Pannellum's dated default loading box — we use our own. */
.v360-viewer .pnlm-load-box {
	display: none !important;
}

/* --- Loader overlay --- */
.v360-loader {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(120% 120% at 50% 38%, #171a1f 0%, #0b0d10 100%);
	transition: opacity 0.6s ease;
}
.v360-viewer__stage.is-loaded .v360-loader {
	opacity: 0;
	pointer-events: none;
}
.v360-loader__ring {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.16);
	border-top-color: rgba(255, 255, 255, 0.85);
	animation: v360-spin 0.9s linear infinite;
}
@keyframes v360-spin {
	to { transform: rotate(360deg); }
}

/* --- Controls: frosted glass, bottom-right, rounded --- */
.v360-viewer .pnlm-controls-container {
	top: auto;
	left: auto;
	right: 16px;
	bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-end;
	z-index: 4;
}
/* Scope the glass styling to the zoom/fullscreen cluster — NOT the compass,
   which also carries the .pnlm-controls class but lives elsewhere. */
.v360-viewer .pnlm-controls-container .pnlm-controls:not(.pnlm-compass) {
	position: relative; /* contain the absolutely-positioned zoom-in/out buttons */
	margin: 0;
	border: none;
	border-radius: 15px;
	overflow: hidden;
	/* Premium light frosted glass; background-color (not shorthand) keeps the sprite icons. */
	background-color: rgba(255, 255, 255, 0.55);
	-webkit-backdrop-filter: blur(22px) saturate(1.6);
	backdrop-filter: blur(22px) saturate(1.6);
	box-shadow:
		0 8px 26px rgba(0, 0, 0, 0.24),
		inset 0 1px 0 rgba(255, 255, 255, 0.65),
		inset 0 0 0 1px rgba(255, 255, 255, 0.4);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.v360-viewer .pnlm-controls-container .pnlm-controls:not(.pnlm-compass):hover {
	transform: translateY(-2px);
	background-color: rgba(255, 255, 255, 0.72);
	box-shadow:
		0 12px 32px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.8),
		inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.v360-viewer .pnlm-zoom-in {
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

/* Auto-rotate control — sits in the bottom-right nav cluster, matches the zoom glass. */
.v360-viewer .v360-rotctl {
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1a1c22;
	cursor: pointer;
}
.v360-viewer .v360-rotctl svg { width: 15px; height: 15px; display: block; }
.v360-viewer .v360-rotctl .v360-icon-pause { display: none; }
.v360-viewer .v360-rotctl { color: #0f1013; }
.v360-viewer .v360-rotctl[data-on] { color: #e0521f; }
.v360-viewer .v360-rotctl[data-on] .v360-icon-play { display: none; }
.v360-viewer .v360-rotctl[data-on] .v360-icon-pause { display: block; }

/* --- Title / author bar --- */
.v360-viewer .pnlm-panorama-info {
	left: 16px;
	bottom: 16px;
	padding: 9px 15px 10px;
	color: #fff;
	background: rgba(15, 17, 21, 0.55);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	backdrop-filter: blur(14px) saturate(1.3);
	border-radius: 13px;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.v360-viewer .pnlm-title-box {
	margin: 0;
	padding-left: 0;
	font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
}
.v360-viewer .pnlm-author-box {
	padding-left: 0;
	font-size: 12px;
	font-weight: 400;
	opacity: 0.72;
}

/* --- Compass: small dark-glass tile matching the arrow pad, sitting directly
   above the pad's up-key (pad is 112px wide at left:16 → up-key centre at x≈72;
   a 38px tile centres at left:53, and its bottom clears the ~73px-tall pad).
   The needle is recoloured light so it reads on the dark glass. --- */
.v360-viewer .pnlm-compass {
	width: 38px;
	height: 38px;
	left: 53px;
	right: auto;
	bottom: 96px;
	border-radius: 50%;
	background-color: rgba(28, 30, 36, 0.34);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='50' width='50'%3E%3Cpath fill='%23eef0f3' d='m24.5078 6-3.2578 18h7.5l-3.25781-18h-0.984376zm-3.2578 20 3.2578 18h0.9844l3.2578-18h-7.5zm1.19531 0.9941h5.10938l-2.5547 14.1075-2.5547-14.1075z'/%3E%3C/svg%3E");
	background-size: 76% 76%;
	background-position: center;
	background-repeat: no-repeat;
	-webkit-backdrop-filter: saturate(120%) blur(0.75em);
	backdrop-filter: saturate(120%) blur(0.75em);
	box-shadow:
		0 8px 22px -10px rgba(0, 0, 0, 0.55),
		inset 0.19em 0.28em 0.09em -0.19em rgba(179, 179, 179, 0.5),
		inset -0.19em -0.28em 0.09em -0.19em rgba(0, 0, 0, 0.3);
}

.v360-hs__label-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* --- OSMO-style animated title overlay --- */
@font-face {
	font-family: "Inter Tight V360";
	src: url("lib/inter-tight.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
.v360-title {
	position: absolute;
	left: clamp(20px, 4vw, 54px);
	top: clamp(20px, 5vh, 52px);
	z-index: 5;
	pointer-events: none;
	max-width: min(80%, 900px);
	display: flex;
	flex-direction: column;
	font-family: "PP Neue Corp Tight V360", "Inter Tight V360", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.v360-title__mask {
	display: block;
	overflow: hidden;
	padding: 0.06em 0.06em 0.16em;
	margin: -0.06em -0.06em -0.16em;
}
.v360-title__text {
	display: block;
	font-size: clamp(40px, 8.5vw, 104px);
	font-weight: 700;
	line-height: 0.82;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	/* Glassy letters: a translucent white sheen clipped to the text,
	   with a soft depth shadow so it stays legible over the panorama. */
	color: transparent;
	background-image: linear-gradient(
		158deg,
		rgba(255, 255, 255, 0.97) 0%,
		rgba(255, 255, 255, 0.64) 52%,
		rgba(255, 255, 255, 0.92) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter:
		drop-shadow(0 3px 22px rgba(0, 0, 0, 0.5))
		drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
	opacity: 0;
	transform: translateY(115%);
	transition:
		opacity 0.6s ease 0.1s,
		transform 1s cubic-bezier(0.16, 0.9, 0.2, 1) 0.1s;
}
.v360-title__sub {
	margin-top: 0.7em;
	font-family: "PP Neue Montreal V360", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: clamp(11px, 1.4vw, 14px);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(14px);
	transition:
		opacity 0.6s ease 0.3s,
		transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}
.v360-title.is-in .v360-title__text {
	opacity: 1;
	transform: none;
}
.v360-title.is-in .v360-title__sub {
	opacity: 0.82;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.v360-title__text,
	.v360-title__sub {
		transition: none;
	}
}

/* --- Hide-UI toggle (focus mode) --- */
.v360-ui-toggle {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 7;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	color: #1a1c22;
	background-color: rgba(255, 255, 255, 0.55);
	-webkit-backdrop-filter: blur(22px) saturate(1.6);
	backdrop-filter: blur(22px) saturate(1.6);
	box-shadow:
		0 8px 26px rgba(0, 0, 0, 0.24),
		inset 0 1px 0 rgba(255, 255, 255, 0.65),
		inset 0 0 0 1px rgba(255, 255, 255, 0.4);
	transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.4s ease;
}
.v360-ui-toggle:hover {
	background-color: rgba(255, 255, 255, 0.72);
	transform: translateY(-1px);
}
.v360-ui-toggle svg {
	width: 20px;
	height: 20px;
	display: block;
}
.v360-ui-toggle .v360-eye-off {
	display: none;
}

/* When focus mode is on, dim the toggle and fade everything else out. */
.v360-viewer__stage.v360-ui-hidden .v360-ui-toggle {
	opacity: 0.35;
	background-color: rgba(20, 22, 26, 0.25);
}
.v360-viewer__stage.v360-ui-hidden .v360-ui-toggle:hover {
	opacity: 1;
}
.v360-viewer__stage.v360-ui-hidden .v360-ui-toggle .v360-eye-on {
	display: none;
}
.v360-viewer__stage.v360-ui-hidden .v360-ui-toggle .v360-eye-off {
	display: block;
}

.v360-viewer__stage.v360-ui-hidden .pnlm-controls-container,
.v360-viewer__stage.v360-ui-hidden .pnlm-compass,
.v360-viewer__stage.v360-ui-hidden .v360-title,
.v360-viewer__stage.v360-ui-hidden .v360-hotspot {
	opacity: 0 !important;
	pointer-events: none !important;
	transition: none !important;
}
.v360-viewer .pnlm-controls-container,
.v360-viewer .pnlm-compass {
	transition: opacity 0.5s ease;
}

/* Only the label pill reads as the clickable link. */
.v360-hs__stage { cursor: default; }
.v360-hs__label { cursor: pointer; }
.v360-vinyl__play { cursor: pointer; }

/* While a hotspot card is open (touch), Pannellum's control layer (.pnlm-ui,
   which holds the full-viewer drag overlay) sits above the panorama and would
   swallow taps meant for the card's buttons. Disable its pointer-events so taps
   land on the card; the card, now-playing dock and settings live in other layers
   and stay tappable. Restored the moment the card closes. */
.v360-viewer__stage.v360-hs-open .pnlm-ui {
	pointer-events: none !important;
}

/* Close (X) button — a STAGE-level element (touch only, created by JS), placed by
   JS over the open card's top-left corner (partly overlapping it). Stage level +
   high z-index guarantees it sits above Pannellum's layers and stays tappable. */
.v360-hs__close {
	position: absolute;
	z-index: 22;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	pointer-events: auto;
	color: #12141a;
	background: rgba(255, 255, 255, 0.96);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.v360-hs__close[hidden] { display: none; }
.v360-hs__close:active { transform: scale(0.92); }
.v360-hs__close svg {
	width: 16px;
	height: 16px;
	display: block;
	pointer-events: none;
}

/* ===================================================================
   Off-canvas story panel (left) + its "text" button (OSMO glass style)
   =================================================================== */

/* --- The trigger: a round glass button at the LEFT of the dock (before the
   now-playing pill), styled to match the gear. The .v360-dock prefix beats the
   dock's `:where(button){color:inherit}` reset so the icon stays white. --- */
.v360-dock .v360-storybtn {
	flex: none;
	width: 2.5em;
	height: 2.5em;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 100em;
	color: rgba(255, 255, 255, 0.92);
	position: relative;
	box-shadow: 0 0.5em 1em -0.75em rgba(0, 0, 0, 0.5);
	transition: color 0.2s ease, transform 0.4s cubic-bezier(0.625, 0.05, 0, 1);
}
.v360-dock .v360-storybtn:hover { color: #fff; transform: scale(1.08); }
.v360-dock .v360-storybtn[hidden] { display: none; }
.v360-dock .v360-storybtn svg { width: 1.2em; height: 1.2em; position: relative; display: block; }

/* Hover tip — makes clear the button opens the story text, not a menu. */
.v360-storybtn__tip {
	position: absolute;
	top: calc(100% + 0.5em);
	left: 50%;
	transform: translateX(-50%) translateY(-4px);
	padding: 0.32em 0.72em;
	border-radius: 100em;
	white-space: nowrap;
	font-size: 0.72em;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #f4f3f1;
	background: rgba(18, 20, 26, 0.85);
	-webkit-backdrop-filter: blur(0.5em);
	backdrop-filter: blur(0.5em);
	box-shadow: 0 0.4em 1em -0.5em rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1.15), visibility 0.22s;
}
.v360-dock .v360-storybtn:hover .v360-storybtn__tip,
.v360-dock .v360-storybtn:focus-visible .v360-storybtn__tip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* --- Scrim over the rest of the viewer while the panel is open --- */
.v360-story__scrim {
	position: absolute;
	inset: 0;
	z-index: 39;
	background: rgba(6, 7, 10, 0.3);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease, visibility 0s 0.45s;
}
.v360-story__scrim[data-open] {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.45s ease;
}

/* --- The panel: slides in from the left edge --- */
.v360-story {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 40;
	width: min(500px, 92%);
	color: #17181c;
	border-radius: 0 1.4em 1.4em 0;
	overflow: hidden;
	transform: translateX(-102%);
	visibility: hidden;
	box-shadow: 0 0 3em -0.4em rgba(0, 0, 0, 0.55);
	transition: transform 0.55s cubic-bezier(0.625, 0.05, 0, 1), visibility 0s 0.55s;
}
.v360-story[data-open] {
	transform: none;
	visibility: visible;
	transition: transform 0.55s cubic-bezier(0.625, 0.05, 0, 1);
}
.v360-story :where(button) { -webkit-appearance: none; appearance: none; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.v360-story :where(*, *::before, *::after) { box-sizing: border-box; }
/* Frosted glass: translucent enough that the panorama stays subtly visible
   underneath, with a strong blur so the dark story text stays readable. Extra
   specificity (.v360-viewer …) so it beats the darker base fill in audio-dock.css
   regardless of stylesheet order. */
.v360-viewer .v360-story .glass-effect {
	-webkit-backdrop-filter: saturate(130%) brightness(1.05) blur(2.3em);
	backdrop-filter: saturate(130%) brightness(1.05) blur(2.3em);
	border-radius: inherit;
}
.v360-viewer .v360-story .glass-effect__fill { background-color: rgba(244, 244, 246, 0.44); }

.v360-story__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: clamp(1.5em, 3.4vw, 2.3em) clamp(1.35em, 3vw, 2em);
	font-family: "PP Neue Montreal V360", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
.v360-story__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex: none;
}
.v360-story__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.7em;
	font-weight: 500;
	color: rgba(23, 24, 28, 0.55);
}
.v360-story__close {
	width: 2em;
	height: 2em;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 100em;
	color: rgba(23, 24, 28, 0.55);
	transition: color 0.2s ease, background-color 0.2s ease;
}
.v360-story__close:hover { color: #17181c; background-color: rgba(23, 24, 28, 0.09); }
.v360-story__close svg { width: 0.9em; height: 0.9em; display: block; }
.v360-story__title {
	flex: none;
	margin: 0.55em 0 0.6em;
	font-family: "PP Neue Corp Tight V360", "Inter Tight V360", Inter, system-ui, sans-serif;
	text-transform: uppercase;
	font-weight: 700;
	font-size: clamp(26px, 4.6vw, 40px);
	line-height: 0.95;
	letter-spacing: 0.01em;
	color: #15161a;
}
.v360-story__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding-right: 0.6em;
	font-size: clamp(15.5px, 1.85vw, 17.5px);
	line-height: 1.68;
	color: rgba(20, 21, 25, 0.92);
	-webkit-overflow-scrolling: touch;
}
.v360-story__body p { margin: 0 0 1.05em; }
.v360-story__body p:last-child { margin-bottom: 0; }
.v360-story__body a { color: var(--v360-accent, #ff6a3d); text-decoration: underline; text-underline-offset: 2px; }
.v360-story__body ul,
.v360-story__body ol { margin: 0 0 1em; padding-left: 1.3em; }
.v360-story__body li { margin: 0.25em 0; }
.v360-story__body strong { font-weight: 600; color: #15161a; }
.v360-story__body em { font-style: italic; }
.v360-story__body::-webkit-scrollbar { width: 8px; }
.v360-story__body::-webkit-scrollbar-track { background: transparent; }
.v360-story__body::-webkit-scrollbar-thumb { background: rgba(23, 24, 28, 0.18); border-radius: 100em; }

@media (prefers-reduced-motion: reduce) {
	.v360-story, .v360-storybtn, .v360-story__scrim { transition: none; }
}

/* ===================================================================
   Keyboard-style arrow pad (pan the view) — bottom-left, beside the compass
   =================================================================== */
.v360-dpad {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 15;
	display: grid;
	grid-template-columns: repeat(3, 34px);
	grid-template-rows: repeat(2, 34px);
	grid-template-areas:
		".    up    ."
		"left down  right";
	gap: 5px;
}
.v360-dpad :where(*, *::before, *::after) { box-sizing: border-box; }
/* Hover hint: reminds that the keyboard arrow keys work too. Sits to the RIGHT
   of the pad (vertically centred) so it never overlaps the compass above it. */
.v360-dpad__hint {
	position: absolute;
	left: calc(100% + 10px);
	top: 50%;
	white-space: nowrap;
	padding: 0.4em 0.8em;
	border-radius: 100em;
	font-family: "PP Neue Montreal V360", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: #f4f3f1;
	background: rgba(18, 20, 26, 0.85);
	-webkit-backdrop-filter: blur(0.5em);
	backdrop-filter: blur(0.5em);
	box-shadow: 0 0.4em 1em -0.5em rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-50%) translateX(-4px);
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1.15), visibility 0.22s;
}
.v360-dpad:hover .v360-dpad__hint,
.v360-dpad:focus-within .v360-dpad__hint {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}
.v360-dpad__key {
	position: relative;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: 0;
	-webkit-appearance: none;
	appearance: none;
	background: none;
	cursor: pointer;
	border-radius: 9px;
	color: rgba(255, 255, 255, 0.92);
	box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.55);
	transition: transform 0.16s ease, color 0.16s ease;
	touch-action: none;
}
.v360-dpad__key--up { grid-area: up; }
.v360-dpad__key--down { grid-area: down; }
.v360-dpad__key--left { grid-area: left; }
.v360-dpad__key--right { grid-area: right; }
.v360-dpad__key svg { position: relative; width: 18px; height: 18px; display: block; }
.v360-dpad__key:hover { color: #fff; }
.v360-dpad__key:hover .glass-effect__fill { background-color: rgba(28, 30, 36, 0.5); }
/* Pressed / click state: the key flips to a bright glass with a dark arrow. */
.v360-dpad__key.is-active,
.v360-dpad__key:active {
	transform: scale(0.88);
	color: #16181d;
}
.v360-dpad__key.is-active .glass-effect__fill,
.v360-dpad__key:active .glass-effect__fill {
	background-color: rgba(255, 255, 255, 0.92);
}
.v360-viewer__stage.v360-ui-hidden .v360-dpad {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}
