.fpvr-wrapper {
    max-width: 520px;
    margin: 20px auto;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    box-sizing: border-box;
    font-family: inherit;
}

.fpvr-video-shell {
    position: relative;
}

.fpvr-video,
mux-player {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    background: #000;
}

.fpvr-countdown {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0,0,0,0.8);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fpvr-warning {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(192, 57, 43, 0.9);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.fpvr-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.fpvr-btn {
    flex: 1 1 45%;
    padding: 8px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background: #2d7d2f;
    color: #fff;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.fpvr-btn[disabled] {
    opacity: 0.5;
    cursor: default;
}

.fpvr-btn.fpvr-start {
    background: #2d7d2f;
}

.fpvr-btn.fpvr-stop {
    background: #c0392b;
}

.fpvr-btn.fpvr-save {
    background: #0073aa;
}

.fpvr-btn.fpvr-rerecord {
    background: #555;
}

.fpvr-btn:hover:not([disabled]) {
    filter: brightness(0.95);
}

.fpvr-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    font-size: 13px;
}

.fpvr-timer {
    font-weight: 600;
}

.fpvr-message {
    color: #555;
}
