/* The finished recording replaces the landing pitch in the current lobby. */
.lobby:has(#rideRecap:not([hidden])){top:clamp(108px,15vh,180px);max-height:calc(100dvh - 130px);overflow-y:auto}
.lobby:has(#rideRecap:not([hidden])) > :is(.entry-kicker,h1,.entry-lead,.entry-next,.entry-divider,.entry-invite,#roomLabel){display:none}
.lobby:has(#rideRecap:not([hidden])) > .lobby-starts{display:none}
.ride-recap{max-width:620px;margin-bottom:22px}
.ride-recap h2{font-size:clamp(32px,4vw,48px);line-height:1.08;letter-spacing:-.045em;margin:3px 0 12px;font-weight:600}
.ride-recap .recap-eyebrow{font-size:11px;letter-spacing:.17em;color:#c6e9d4;font-weight:700}
.ride-recap p{font-size:14px;line-height:1.55;color:#e0ede6;margin:8px 0 16px}
#rideRecapVideo{display:block;width:100%;max-height:min(45vh,420px);background:#101a17;border:1px solid #63827466;border-radius:13px;object-fit:contain}
#rideRecapVideo[hidden]{display:none}
#rideRecapDownloads{margin-top:14px}
#rideRecapDownloads #recordingDownloads{display:block;padding:0;margin:0}
#rideRecapDownloads #recordingDownload{font-weight:700;min-height:44px}
#rideRecapDownloads #recordingDownloadStatus{font-size:12px;line-height:1.5}
#rideRecapDismiss{border:1px solid #a0bdb56b;border-radius:999px;padding:10px 16px;margin-top:12px;background:transparent;color:#e2f0e8}
@media(max-width:600px){.lobby:has(#rideRecap:not([hidden])){top:106px;max-height:calc(100dvh - 116px)}.ride-recap h2{font-size:34px}#rideRecapVideo{max-height:34vh}}

/* The only retained clip is removable from the same surface that plays it. */
#recordingDownloads .recording-discard{display:inline-flex;margin:8px 0 0 9px;min-height:40px;padding:8px 12px;border:1px solid #b7c7bb75;border-radius:9px;color:#e0ede6;background:transparent;font-size:13px}
#recordingDownloads .recording-discard[hidden]{display:none}
#recordingDownloads .recording-discard:disabled{opacity:.5}
#recordingDownloads .recording-discard:focus-visible{outline:3px solid #d9f38b;outline-offset:3px}
@media(max-width:600px){#recordingDownloads .recording-discard{margin:8px 0 0 0;width:100%;justify-content:center}}

/* Reopen the single retained clip from the existing start, never a separate archive screen. */
.lobby-starts #recoverLastRide{display:block;border:1px solid #b7d5c2a6;background:#153c34;color:#eaf7ed;border-radius:999px;margin-top:10px;min-height:44px;width:265px;max-width:100%;font-weight:650}
.lobby-starts #recoverLastRide[hidden]{display:none}
.lobby-starts #recoverLastRide:focus-visible{outline:3px solid #d9f38b;outline-offset:3px}


/* Recovered footage owns the host screen while being reviewed.
   This is the existing ride recap moved out of the hidden lobby, not
   another player or an alternative save action. */
body > .ride-recap.live-recording-review:not([hidden]){
 position:fixed;inset:0;z-index:2200;margin:0;max-width:none;width:100%;
 box-sizing:border-box;padding:clamp(54px,7vh,86px) 24px 35px;
 display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
 overflow:auto;overscroll-behavior:contain;
 background:linear-gradient(145deg,rgba(6,24,27,.97),rgba(12,39,39,.98));
 color:#eff9f2;
}
body > .ride-recap.live-recording-review > :is(.recap-eyebrow,h2,p,#rideRecapVideo,#rideRecapDownloads){
 width:min(100%,1040px);box-sizing:border-box;
}
body > .ride-recap.live-recording-review h2{
 max-width:1040px;font-size:clamp(34px,4.6vw,62px);margin:6px 0 8px;
}
body > .ride-recap.live-recording-review > p{
 margin:4px 0 18px;color:#bdd7cb;
}
body > .ride-recap.live-recording-review #rideRecapVideo{
 max-height:min(58dvh,610px);border-radius:15px;
 box-shadow:0 18px 55px #0009;
}
body > .ride-recap.live-recording-review #rideRecapDownloads{
 margin-top:22px;
}
body > .ride-recap.live-recording-review #recordingDownloads{
 display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;row-gap:10px;
}
body > .ride-recap.live-recording-review #recordingDownload{
 border-radius:999px;min-width:205px;padding:12px 20px;
 background:#c4eed9;border:1px solid #d9fae9;color:#103029;
 font-weight:750;
}
body > .ride-recap.live-recording-review #recordingDownload:hover{
 background:#e0ffed;color:#0b2520;
}
body > .ride-recap.live-recording-review #recordingDownloads .recording-discard{
 margin:0;
}
body > .ride-recap.live-recording-review #recordingDownloadStatus{
 flex-basis:100%;margin-top:0;
}
body > .ride-recap.live-recording-review #rideRecapDismiss{
 position:fixed;right:clamp(18px,3vw,60px);top:clamp(18px,3vw,40px);
 z-index:2;margin:0;min-height:44px;padding:10px 19px;
 background:#133e38;border:1px solid #bde5d888;
}
body > .ride-recap.live-recording-review :focus-visible{outline:3px solid #d9f38b;outline-offset:3px}
@media(max-width:600px){
 body > .ride-recap.live-recording-review:not([hidden]){padding:79px 18px 22px}
 body > .ride-recap.live-recording-review h2{font-size:35px}
 body > .ride-recap.live-recording-review #rideRecapVideo{max-height:40dvh}
 body > .ride-recap.live-recording-review #recordingDownloads{display:block}
 body > .ride-recap.live-recording-review #recordingDownload{width:100%}
 body > .ride-recap.live-recording-review #recordingDownloads .recording-discard{margin-top:10px}
}
