body.bp-replay-mode #import-modal,
body.bp-replay-mode #show-import-modal,
body.bp-replay-mode #export-pool {
    display: none !important;
}

#bp-replay-modal {
    position: fixed;
    bottom: 80px;
    left: 50%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(12, 18, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(-50%);
    cursor: move;
    user-select: none;
}

#bp-replay-modal.playing-mode {
    right: 20px;
    bottom: 20px;
    left: auto;
    transform: none;
}

.bp-replay-import-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    background: rgba(102, 126, 234, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.2s;
    cursor: pointer;
}

.bp-replay-import-btn:hover {
    color: white;
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.8);
}

#bp-replay-file-input {
    display: none;
}

#bp-replay-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bp-replay-speed {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.bp-replay-speed select {
    max-width: 86px;
    height: 28px;
    padding: 0 5px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    font: inherit;
}

#bp-replay-offline-actions {
    align-items: center;
    gap: 8px;
}

#bp-replay-offline-actions .bp-replay-btn {
    width: auto;
    min-width: 92px;
    padding: 0 12px;
    border-radius: 18px;
    gap: 6px;
}

.bp-replay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: white;
    font-size: 13px;
    background: rgba(102, 126, 234, 0.6);
    border: none;
    border-radius: 50%;
    transition: all 0.2s;
    cursor: pointer;
}

.bp-replay-btn:hover {
    background: rgba(118, 75, 162, 0.8);
    transform: scale(1.15);
}

.bp-replay-play {
    width: 40px;
    height: 40px;
    font-size: 16px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bp-replay-play.playing {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.bp-replay-exit {
    background: rgba(231, 76, 60, 0.6);
}

#replay-progress {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.bp-replay-summary {
    width: min(320px, calc(100vw - 48px));
    color: #e5edf8;
    cursor: default;
}

.bp-replay-summary h3 {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 15px;
}

.bp-replay-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.bp-replay-summary-grid div {
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.42);
}

.bp-replay-summary-grid span,
.bp-replay-summary-grid strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bp-replay-summary-grid span {
    margin-bottom: 3px;
    color: #94a3b8;
    font-size: 10px;
}

.bp-replay-summary-grid strong {
    color: #f8fafc;
    font-size: 12px;
}

.bp-replay-summary-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.bp-replay-summary-actions button {
    padding: 7px 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 7px;
    background: rgba(51, 65, 85, 0.75);
    color: #e5edf8;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.bp-replay-summary-actions .bp-replay-summary-start {
    border-color: rgba(56, 239, 125, 0.48);
    background: rgba(17, 153, 142, 0.78);
    color: #fff;
}
