html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    -webkit-tap-highlight-color: transparent;
}
#panorama {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
#video-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
    background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 70%, transparent 100%);
    pointer-events: none;
}
#video-toolbar > * {
    pointer-events: auto;
}
.tb-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    touch-action: manipulation;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.tb-btn:active {
    background: rgba(255,255,255,0.28);
}
.tb-title {
    flex: 1;
    min-width: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#play-overlay {
    position: fixed;
    inset: 0;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    color: #fff;
    text-align: center;
    padding: 24px;
    cursor: pointer;
    touch-action: manipulation;
}
#play-overlay.hidden {
    display: none;
}
#play-overlay .hint {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.85;
    max-width: 280px;
    line-height: 1.5;
}
#play-overlay .big-play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(220, 20, 60, 0.95);
    border: 3px solid rgba(255, 215, 0, 0.9);
    color: #fff;
    font-size: 28px;
    line-height: 72px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
#loading {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 16px;
    flex-direction: column;
    gap: 12px;
}
#loading.show {
    display: flex;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.25);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@media (max-width: 480px) {
    .tb-title { font-size: 14px; }
    .tb-btn { font-size: 14px; min-width: 42px; min-height: 42px; }
}
