.demo-player {
    box-sizing: border-box;
    width: min(960px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 12px 20px 20px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #1a1a1a;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.demo-player::backdrop { background: rgba(0, 0, 0, .8); }
.demo-player-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.demo-player-header h2 { margin: 0; font-size: 22px; }
.demo-player-close { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 6px; background: #eef2f6; color: #1a1a1a; font-size: 26px; cursor: pointer; }
.demo-player-close:focus-visible { outline: 3px solid #055592; outline-offset: 2px; }
.demo-player-media { width: 100%; max-width: calc((100dvh - 200px) * 16 / 9); margin: auto; aspect-ratio: 16 / 9; background: #000; }
.demo-player-media iframe, .demo-player-media video { display: block; width: 100%; height: 100%; border: 0; }
.demo-player-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 12px; }
.demo-player-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.demo-player-footer .btn-secondary { box-sizing: border-box; justify-content: center; }
.demo-player-fallback { color: #4f4f4f; }
.demo-player-status { font-size: 14px; margin: 12px 0 0; }
.demo-walkthrough-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; }
.guide-video video { position: absolute; inset: 0; width: 100%; height: 100%; }
#overview, #capsule, #stories { scroll-margin-top: 100px; }
.demo-body #overview, .demo-body #capsule { margin-top: 0; padding-top: 0; border-top: 0; }
.demo-reminder-bottom { text-align: center; }

@media (max-width: 640px) {
    .demo-player { padding: 8px 12px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .demo-player-header h2 { font-size: 19px; }
    .demo-player-footer { gap: 0; flex-direction: column; }
}
