html, body { margin: 0; padding: 0; overflow: hidden; width: 100%; height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #000; }
#pano { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Scene list */
#sceneList { position: absolute; top: 0; left: 0; width: 220px; height: 100%; background: rgba(0,0,0,.7); transform: translateX(-220px); transition: transform .3s; z-index: 100; overflow-y: auto; }
#sceneList.enabled { transform: translateX(0); }
#sceneList .scenes { list-style: none; margin: 0; padding: 60px 0 0; }
#sceneList .scene { display: block; padding: 14px 18px; color: #ccc; text-decoration: none; cursor: pointer; transition: background .2s; border-left: 3px solid transparent; }
#sceneList .scene:hover { background: rgba(255,255,255,.1); }
#sceneList .scene.current { color: #fff; background: rgba(255,255,255,.15); border-left-color: #4a9eff; }
#sceneList .scene .text { font-size: 14px; }

/* Title bar */
#titleBar { position: absolute; top: 0; left: 0; right: 0; height: 50px; display: flex; align-items: center; padding: 0 60px; background: linear-gradient(rgba(0,0,0,.5), transparent); z-index: 10; pointer-events: none; }
.sceneName { color: #fff; font-size: 16px; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* Toggle buttons */
#autorotateToggle, #fullscreenToggle, #sceneListToggle { position: absolute; z-index: 100; cursor: pointer; }
#sceneListToggle { top: 8px; left: 8px; }
#autorotateToggle { bottom: 8px; left: 8px; }
#fullscreenToggle { bottom: 8px; right: 8px; }
.icon { width: 28px; height: 28px; opacity: .7; transition: opacity .2s; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.icon:hover { opacity: 1; }
.icon.off { display: block; }
.icon.on { display: none; }
.enabled .icon.off { display: none; }
.enabled .icon.on { display: block; }

/* View controls */
.viewControlButton { position: absolute; z-index: 100; cursor: pointer; display: none; }
body.view-control-buttons .viewControlButton { display: block; }
.viewControlButton .icon { width: 32px; height: 32px; }
.viewControlButton-1 { bottom: 92px; right: 8px; }
.viewControlButton-2 { bottom: 8px; right: 8px; }
.viewControlButton-3 { bottom: 50px; right: 50px; }
.viewControlButton-4 { bottom: 50px; left: auto; right: -34px; right: 8px; }
.viewControlButton-3 { bottom: 50px; right: 50px; }
.viewControlButton-4 { bottom: 50px; right: -34px; }

/* Fix view control positions */
.viewControlButton-1 { bottom: 100px; right: 14px; }
.viewControlButton-2 { bottom: 14px; right: 14px; }
.viewControlButton-3 { bottom: 57px; right: 56px; }
.viewControlButton-4 { bottom: 57px; right: 14px; }
.viewControlButton-5 { bottom: 57px; left: 14px; }
.viewControlButton-6 { bottom: 14px; left: 14px; }

/* Link hotspot */
.link-hotspot { display: block; width: 56px; height: 56px; margin: -28px 0 0 -28px; cursor: pointer; text-decoration: none; }
.link-hotspot-icon { width: 100%; height: 100%; background: radial-gradient(circle at 35% 35%, rgba(255,200,60,.95), rgba(255,140,0,.92)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 0 16px 4px rgba(255,165,0,.45), 0 2px 8px rgba(0,0,0,.4); border: 2.5px solid rgba(255,255,255,.85); transition: transform .25s ease, box-shadow .25s ease; animation: hs-pulse 2.2s ease-in-out infinite; }
.link-hotspot-icon svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.link-hotspot:hover .link-hotspot-icon { transform: scale(1.2); box-shadow: 0 0 24px 8px rgba(255,165,0,.6), 0 4px 12px rgba(0,0,0,.4); animation: none; }
@keyframes hs-pulse { 0%,100%{ box-shadow: 0 0 16px 4px rgba(255,165,0,.45), 0 2px 8px rgba(0,0,0,.4); transform: scale(1); } 50%{ box-shadow: 0 0 24px 10px rgba(255,165,0,.35), 0 2px 8px rgba(0,0,0,.4); transform: scale(1.08); } }

/* Info hotspot */
.info-hotspot { position: relative; cursor: pointer; }
.info-hotspot-header { display: flex; align-items: center; gap: 6px; background: rgba(0,120,255,.9); border-radius: 20px; padding: 6px 10px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.info-hotspot-icon { width: 20px; height: 20px; filter: brightness(100); }
.info-hotspot-title { color: #fff; font-size: 13px; font-weight: 500; display: none; }
.info-hotspot-close { width: 16px; height: 16px; display: none; margin-left: auto; filter: brightness(100); }
.info-hotspot-text { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.88); color: #fff; padding: 14px 18px; border-radius: 8px; margin-bottom: 10px; min-width: 200px; max-width: 300px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.info-hotspot.visible .info-hotspot-title { display: block; }
.info-hotspot.visible .info-hotspot-close { display: block; }
.info-hotspot.visible .info-hotspot-text { display: block; }

/* Responsive */
@media (max-width: 600px) {
  #sceneList { width: 180px; transform: translateX(-180px); }
  .viewControlButton .icon { width: 26px; height: 26px; }
}