.frame:has(> #main > .replay-video) { max-width:none; }
#main:has(> .replay-video) { padding:0; }
#main > .replay-video[data-route="9144"],
#page-dialog:has(.replay-video) { width:100%; max-width:none; margin:0; padding:0; }
#page-dialog:has(.replay-video) .close-layer { display:none; }
.page.replay-video {
  position:relative; isolation:isolate; display:grid; place-items:center; width:100%;
  height:100vh; height:100dvh; min-height:0; padding:0; margin:0; overflow:hidden;
  background:#000; color:white; color-scheme:dark;
}
.rv-player { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#000; }
.rv-icon {
  display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:50%;
  padding:0; background:rgb(0 0 0 / .55); color:white; cursor:pointer;
}
.rv-icon svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; stroke-linecap:round; }
.rv-share svg { width:22px; height:22px; }
.rv-close,.rv-toolbar { position:absolute; z-index:2; top:calc(env(safe-area-inset-top, 0px) + 12px); }
.rv-close { left:calc(env(safe-area-inset-left, 0px) + 16px); }
.rv-toolbar { display:flex; gap:8px; right:calc(env(safe-area-inset-right, 0px) + 16px); }
.rv-icon:focus-visible,.replay-video a:focus-visible,.replay-video button:focus-visible { outline:2px solid white; outline-offset:2px; }
.rv-panel { position:relative; z-index:1; box-sizing:border-box; width:min(100%,32rem); max-height:calc(100dvh - 128px); overflow:auto; padding:12px 24px; text-align:center; }
.rv-panel h2 { font-size:20px; line-height:1.3; letter-spacing:normal; margin:0; color:inherit; }
.rv-detail,.rv-notice { font-size:14px; line-height:1.5; color:#c3c3c8; margin:10px 0 0; }
.rv-detail:empty,.rv-actions:empty,.rv-notice:empty,.rv-toolbar:empty,.rv-stage:empty,
.replay-video[data-state="ready"] .rv-panel { display:none; }
.rv-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; margin-top:22px; }
.rv-actions .rv-primary { flex-basis:100%; color:#101013; background:#fff; font-weight:650; }
.rv-primary,.rv-action,.rv-link,.rv-actions .button { display:inline-grid; place-items:center; min-height:44px; padding:8px 16px; border-radius:999px; font:inherit; font-size:14px; text-decoration:none; cursor:pointer; }
.rv-action,.rv-actions .button { background:#232326; color:#fff; border:0; }
.rv-link { color:#c8c8ce; text-decoration:underline; }
.rv-actions .model-form,.rv-actions .controls,.rv-actions .actions { display:contents; }
.rv-actions .form-status:empty { display:none; }
.rv-stage { width:100%; }
.replay-video[data-state="generating"] { align-content:center; gap:12px; }
.rv-notice { position:absolute; z-index:2; left:50%; transform:translateX(-50%); bottom:80px; width:max-content; max-width:85%; padding:10px 14px; border-radius:12px; background:rgb(20 20 20 / .92); color:#fff; }

.rv-accessible-title { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
