html, body {
    margin: 0;
    height: 100%;
    background: #0c1014;
    color: #fff;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

#pano-stage {
    position: fixed;
    inset: 0;
}

#pano-stage .krpano,
#pano-stage > div {
    width: 100%;
    height: 100%;
}

.pano-hint {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 22px;
    z-index: 20;
    text-align: center;
    font-size: 12px;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .7);
    pointer-events: none;
}

.pnlm-about-msg,
.pnlm-load-box p {
    display: none !important;
}

.pnlm-container {
    background: #0c1014;
}

.pnlm-controls-container {
    right: 16px !important;
    bottom: 16px !important;
}

.pnlm-zoom-in,
.pnlm-zoom-out,
.pnlm-fullscreen-toggle-button {
    background-color: rgba(12, 16, 20, .45) !important;
}

.pano-music-btn {
    position: fixed;
    right: 12px;
    top: 12px;
    z-index: 800;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 44px 44px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}

.pano-music-btn.is-on {
    background-image: url("./music.svg");
    animation: pano-music-pulse 2.4s ease-in-out infinite;
}

.pano-music-btn.is-off {
    background-image: url("./music-off.svg");
    animation: none;
    opacity: .88;
}

@keyframes pano-music-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@media screen and (max-width: 767px) {
    .pano-music-btn {
        right: calc(20px + env(safe-area-inset-right, 0px));
        top: calc(12px + env(safe-area-inset-top, 0px));
    }
}

.pano-scenes {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    background: rgba(0, 0, 0, .42);
    pointer-events: none;
}

.pano-scenes-track {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 12px;
    background: transparent;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    pointer-events: auto;
    scrollbar-width: thin;
}

.pano-scenes-track::-webkit-scrollbar {
    height: 4px;
}

.pano-scenes-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .28);
    border-radius: 99px;
}

.pano-scenes-item {
    flex: 0 0 auto;
    width: 90px;
    height: 90px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 5px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.pano-scenes-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pano-scenes-item.is-on {
    border-color: #f6a600;
    background: transparent;
}

.pano-scenes-item span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.has-pano-scenes .pano-hint {
    bottom: 148px;
}

@media screen and (max-width: 767px) {
    .pano-scenes {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        padding: 8px 0;
    }
    .pano-scenes-track {
        justify-content: center;
        gap: 10px;
        padding: 0 10px;
    }
    .pano-scenes-item {
        width: 78px;
        height: 78px;
        border-radius: 5px;
    }
    .pano-scenes-item span {
        font-size: 11px;
        height: 18px;
        line-height: 18px;
    }
    body.has-pano-scenes .pano-hint {
        bottom: 116px;
    }
}
