#scenery-launch {
    position: fixed;
    z-index: 45;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    background: var(--panel);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 3px 16px #0003;
}
#scenery-launch:hover { background: var(--hover); }
body.scenery-open { overflow: hidden; }
#scenery-player {
    position: fixed;
    inset: 0;
    z-index: 10000;
    height: 100%;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    background: #070909;
    color: #fff;
    color-scheme: dark;
    outline: none;
}
.scenery-stage, .scenery-stage video { position: absolute; inset: 0; width: 100%; height: 100%; }
.scenery-stage video { object-fit: contain; opacity: 0; pointer-events: none; }
.scenery-stage video.is-current { opacity: 1; }
.scenery-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: end;
    gap: 14px;
    justify-content: space-between;
    padding: 64px max(3vw, 16px, env(safe-area-inset-right)) max(3vh, 16px, env(safe-area-inset-bottom)) max(3vw, 16px, env(safe-area-inset-left));
    background: linear-gradient(transparent, #0009);
    pointer-events: none;
}
.scenery-location {
    display: flex;
    align-items: center;
    gap: .5em;
    align-self: end;
    margin: 0 0 5px;
    font-size: clamp(17px, 1.65vw, 36px);
    font-weight: 550;
    line-height: 1.25;
    text-shadow: 0 1px 5px #000;
    overflow-wrap: anywhere;
}
.scenery-location svg { flex: none; width: 1em; height: 1em; }
.scenery-tools { margin-left: auto; display: flex; align-items: center; border-radius: 28px; padding: 3px; }
.scenery-tools, #scenery-player .scenery-close {
    border: 1px solid #ffffff52;
    background: #101615d9;
}
#scenery-player button {
    min-height: 44px;
    min-width: 44px;
    padding: 0 11px;
    margin: 0;
    border: 0;
    border-radius: 24px;
    color: #fff;
    background: transparent;
    line-height: 1;
    white-space: nowrap;
}
#scenery-player button:hover, #scenery-player button:focus-visible { background: #38433e; }
#scenery-player button:focus-visible, #scenery-launch:focus-visible { outline: 2px solid white; box-shadow: 0 0 0 4px #16634a; }
#scenery-player [data-save-clip] { padding-right: 15px; }
#scenery-player [aria-pressed="true"] svg { fill: currentColor; }
#scenery-player button span:not([hidden]) { display: inline-flex; align-items: center; }
#scenery-player .scenery-close {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
}
.scenery-status {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    margin: 0;
    border-radius: 12px;
    padding: 8px 16px;
    background: #101615df;
    text-align: center;
}
.scenery-status:empty { display: none; }
.scenery-control { transition: opacity .2s ease; pointer-events: auto; }
#scenery-player.is-idle { cursor: none; }
#scenery-player.is-idle .scenery-control { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
    .scenery-footer { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
    .scenery-location { align-self: start; }
}
@media (prefers-reduced-motion: reduce) { .scenery-control { transition: none; } }
@media print { #scenery-launch, #scenery-player { display: none !important; } }
