.sc-replay .sc-replay-dock { height: 154px; }
.sc-replay .chess-spectator-view:fullscreen .sc-replay-dock { height: 0 !important; }
.sc-replay .chess-spectator-view .sc-replay-deck {
    position: absolute;
    z-index: 6;
    inset: auto;
    left: var(--replay-deck-x, 8px);
    top: var(--replay-deck-y, 8px);
    width: 208px;
    max-width: calc(100% - 16px);
    margin: 0;
    padding: 7px;
    border: 1px solid #73649e;
    border-radius: 10px;
    background: #100d27f5;
    box-shadow: 0 4px 16px #0007;
    font-family: Arial, sans-serif;
    user-select: none;
}
.sc-replay-deck:not([data-deck-ready]) { visibility: hidden; }
.sc-replay .sc-replay-deck button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    padding: 2px 6px;
    border-radius: 6px;
    font: 600 16px/1 Arial, sans-serif;
}
.sc-replay-deck-header { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 4px; }
.sc-replay .sc-replay-deck [data-replay-deck-drag] { flex: 1; cursor: grab; touch-action: none; color: #b6abd9; background: transparent; border-color: transparent; }
.sc-replay-deck-header [data-replay-deck-toggle] { background: #30285b; }
.sc-replay .sc-replay-deck .sc-replay-controls { flex-wrap: nowrap; justify-content: flex-start; gap: 4px; margin: 0; }
.sc-replay .sc-replay-deck [data-replay-time] { flex: 1; min-width: 0; font-size: 11px; white-space: nowrap; }
.sc-replay .sc-replay-deck .sc-replay-seek { height: 16px; margin: 4px 0; }
.sc-replay-deck-options { display: grid; grid-template-columns: minmax(0, 1fr) 62px; gap: 4px; }
.sc-replay .sc-replay-deck select { width: 100%; max-width: none; min-width: 0; min-height: 28px; padding: 3px 4px; font-size: 12px; }
.sc-replay .sc-replay-deck .sc-replay-deck-launcher { display: none; }
.sc-replay .chess-spectator-view .sc-replay-deck[data-collapsed="true"] { width: 40px; height: 40px; padding: 0; }
.sc-replay-deck[data-collapsed="true"] .sc-replay-deck-header,
.sc-replay-deck[data-collapsed="true"] [data-replay-deck-body] { display: none; }
.sc-replay .sc-replay-deck[data-collapsed="true"] .sc-replay-deck-launcher { display: flex; width: 100%; height: 100%; border: 0; touch-action: none; }
.sc-replay-deck[data-dragging="true"] [data-replay-deck-drag] { cursor: grabbing; }
.chess-spectator-view[data-deck-dragging] iframe { pointer-events: none; }
