body:has(#main > .shared-replay) { background:#000; }
body:has(#main > .shared-replay) :is(.mast,.rail,.bottom-nav) { display:none; }
.frame:has(#main > .shared-replay), #main:has(> .shared-replay) {
  display:block; width:100%; max-width:none; margin:0; padding:0;
}
#main > .page.shared-replay {
  position:relative; width:100%; max-width:none; height:100dvh; min-height:0;
  padding:0; margin:0; background:#000; color:white; color-scheme:dark; isolation:isolate;
}
.shared-replay > .page.replay-video { max-width:none; }
.shared-replay .shared-exit {
  position:absolute; z-index:3; top:calc(env(safe-area-inset-top,0px) + 12px);
  left:calc(env(safe-area-inset-left,0px) + 16px); width:44px; height:44px;
  display:grid; place-content:center; border:0; border-radius:50%; font:300 30px/1 system-ui;
  cursor:pointer; background:rgb(0 0 0 / .55); color:white;
}
.shared-replay .shared-body {
  height:100%; overflow:auto; display:flex; flex-direction:column; align-items:center;
  gap:16px; padding:max(64px,env(safe-area-inset-top)) 32px max(64px,env(safe-area-inset-bottom)); box-sizing:border-box;
}
.shared-replay .shared-body > :first-child { margin-top:auto; }
.shared-replay .shared-body > :last-child { margin-bottom:auto; }
.shared-replay .shared-panel { display:grid; justify-items:center; text-align:center; gap:12px; max-width:34rem; }
.shared-replay h1,.shared-replay .shared-title { font-family:inherit; font-size:20px; font-weight:650; line-height:1.3; letter-spacing:normal; margin:0; color:white; }
.shared-replay .shared-description,.shared-replay .shared-empty { color:rgb(255 255 255 / .6); font-size:14px; line-height:1.5; margin:0; }
.shared-replay .shared-action,.shared-replay .button {
  display:inline-flex; align-items:center; justify-content:center; min-height:40px;
  padding:8px 16px; border:0; border-radius:999px; background:#fff; color:#171719;
  font:600 14px/1.25 system-ui,sans-serif; text-decoration:none; cursor:pointer;
}
.shared-replay :is(button,a):focus-visible { outline:2px solid white; outline-offset:3px; }
.shared-replay .shared-options { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; }
.shared-replay .shared-options .model-form,.shared-replay .shared-options .controls,.shared-replay .shared-options .actions { display:contents; }
.shared-replay .form-status:empty,.shared-replay .shared-list:not(:empty) + .shared-empty { display:none; }
.shared-replay .shared-stage { width:min(100%,640px); text-align:center; }
.shared-replay .shared-stage .cover-art { display:block; width:100%; height:clamp(150px,40dvh,400px); object-fit:contain; }
.shared-replay .shared-stage:has(.box-replay,.hb-stage) > .cover-art { display:none; }
.shared-replay .shared-stage .replay-stage { border-radius:0; background:black; }
.shared-replay .shared-stage .box-replay p { color:#ccc; }
.shared-replay .shared-stage [data-native-widget] { margin-block:8px 0 !important; }
.shared-replay .shared-list { width:100%; display:grid; gap:4px; list-style:none; padding:0; margin:0; }
.shared-replay .shared-list li { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:12px 0; border-bottom:1px solid #333; }
.shared-replay .shared-name { text-align:left; flex:1; }
.shared-replay .shared-thumb { width:48px; height:54px; object-fit:contain; }
.shared-replay .shared-spinner { width:28px; height:28px; border:3px solid #48484b; border-top-color:white; border-radius:50%; animation:shared-replay-rotate .8s linear infinite; }
@keyframes shared-replay-rotate { to { transform:rotate(1turn); } }
@media (prefers-reduced-motion:reduce) { .shared-replay .shared-spinner { animation:none; } }

.shared-replay .shared-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.shared-replay .shared-name :is(strong,small) { display:block; overflow-wrap:anywhere; }
.shared-replay .shared-name small { color:#a5a5a5; margin-top:4px; font-size:12px; }
body:has(#main > .shared-replay) > #notice { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
