/* Play Recap (web): the cards are fixed 475x844 artboards scaled to the screen. */
@font-face {
    font-family: 'Anton';
    src: url('../assets/fonts/Anton-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.rs-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10500;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.rs-overlay.d-none { display: none !important; }

.rs-stage {
    position: relative;
    flex: 0 0 auto;
    width: 475px;
    height: 844px;
    transform-origin: center center;
    --rs-tint: #fff;
    user-select: none;
    -webkit-user-select: none;
}
.rs-cards { position: absolute; left: 0; top: 0; width: 475px; height: 844px; }

.rs-slide { display: none; position: absolute; left: 0; top: 0; width: 475px; height: 844px; }
.rs-slide.active { display: block; }

.rs-card {
    position: relative;
    width: 475px;
    height: 844px;
    overflow: hidden;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    box-sizing: border-box;
}
.rs-card * { box-sizing: border-box; }
.rs-inner {
    position: absolute; left: 0; top: 0; right: 0; bottom: 0;
    padding: 14px 16px 24px;
    display: flex;
    flex-direction: column;
}
.rs-top { height: 53px; flex-shrink: 0; }
.rs-body { flex: 1; min-height: 0; position: relative; }
.rs-foot {
    height: 46px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.rs-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120px;
    height: auto;
    opacity: .6;
    transform: translate(-50%, calc(-50% - 10px));
    pointer-events: none;
}
.rs-share, .rs-done {
    cursor: pointer;
    font-family: inherit;
}
.rs-share {
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 23px;
    font-size: 16px;
    font-weight: 800;
    position: relative;
    z-index: 3;
}

/* Progress bars + close, on the same artboard */
.rs-chrome { position: absolute; left: 0; top: 0; right: 0; height: 70px; pointer-events: none; z-index: 5; }
.rs-progress { position: absolute; left: 16px; right: 16px; top: 14px; display: flex; gap: 4px; }
.rs-progress span {
    flex: 1; height: 3px; border-radius: 2px; overflow: hidden;
    background: var(--rs-tint); position: relative;
}
.rs-progress span::before {
    content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0;
    background: var(--rs-tint); opacity: 0;
}
.rs-progress span { background: color-mix(in srgb, var(--rs-tint) 35%, transparent); }
.rs-progress span i { display: block; height: 100%; width: 0; background: var(--rs-tint); }
.rs-close {
    position: absolute; right: 16px; top: 23px;
    width: 44px; height: 44px; border: 0; background: none;
    color: var(--rs-tint); font-size: 22px; cursor: pointer; pointer-events: auto;
}

/* Tap zones: left goes back, right goes forward; the bottom stays free for the buttons */
.rs-zone { position: absolute; top: 67px; bottom: 130px; width: 30%; z-index: 4; cursor: pointer; }
.rs-zone-prev { left: 0; }
.rs-zone-next { right: 0; }

/* Share choice sheet */
.rs-sheet-wrap {
    position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 8;
    background: rgba(0, 0, 0, .55);
    display: flex; align-items: flex-end;
}
.rs-sheet-wrap.d-none { display: none !important; }
.rs-sheet {
    width: 100%; padding: 18px 16px 24px;
    background: #1E1F26; border-radius: 28px 28px 0 0;
    display: flex; flex-direction: column; gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}
.rs-sheet-title { color: #fff; font-size: 17px; font-weight: 700; padding: 0 4px 4px; }
.rs-sheet-row {
    display: flex; align-items: center; gap: 14px; text-align: left;
    padding: 10px 14px; min-height: 64px; border: 0; border-radius: 14px;
    background: #2A2B33; color: #fff; cursor: pointer;
}
.rs-sheet-row b { display: block; font-size: 16px; font-weight: 600; }
.rs-sheet-row small { display: block; font-size: 13px; color: #8E8E93; }
.rs-sheet-icon {
    width: 40px; height: 40px; border-radius: 10px; background: #3A3B44; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.rs-sheet-ig { background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCB045); }
.rs-sheet-cancel { height: 52px; border: 0; background: none; color: #A1A1A8; font-size: 16px; font-weight: 600; cursor: pointer; }

.rs-toast {
    position: absolute; left: 24px; right: 24px; bottom: 92px; z-index: 9;
    padding: 12px 16px; border-radius: 14px; text-align: center;
    background: #2A2B33; color: #fff; font-size: 14px; font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}
.rs-toast.d-none { display: none !important; }

/* Single-card stories (movie / show / playlist): no progress bars or tap zones */
.rs-single .rs-progress, .rs-single .rs-zone { display: none; }
