.tool-content {
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    border: 1px solid #e9ecef;
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.preview-box .preview-container {
    background-color: #f4f6f9;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid #ddd;
    position: relative;
}

.preview-box .preview-container .empty-preview {
    width: 100%;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #97aac1;
    background-color: #f4f6f9;
    user-select: none;
}

.preview-box .preview-container .empty-preview svg {
    width: 100px;
    height: 100px;
    margin-bottom: 18px;
    color: #cbd5e1;
}

.preview-box .preview-container video {
    width: 100%;
    max-height: 500px;
    display: block;
}

.settings-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 30px;
}

.settings-box > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.settings-box > div > label {
    display: flex;
    align-items: center;
}

hr {
    border: none;
    height: 0;
    border-top: 1px solid #eaeaea;
    padding: 0;
}

.tool-content .operate-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-sr {
    outline: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    font-size: 14px;
}

.btn-sr svg {
    fill: #fff;
}

.btn-sr-purple {
    color: #fff;
    background-color: rgb(93 79 248 / 95%);
    border-color: rgb(93 79 248 / 95%);
}

.btn-sr-red {
    color: #fff;
    background-color: rgb(242 55 55 / 95%);
    border-color: rgb(242 55 55 / 95%);
}

.btn-sr-green {
    color: #fff;
    background-color: rgba(34, 197, 94, 0.95);
    border-color: rgba(34, 197, 94, 0.95);
}

.sr-timer-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.sr-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dc3545;
}

.sr-dot.sr-recording {
    animation: sr-pulse 1s infinite;
}

@keyframes sr-pulse {
    0%,100% { opacity:1; }
    50% { opacity:.5; }
}

.sr-timer {
    font-size: 18px;
    font-weight: 700;
    font-family: monospace;
    color: #dc3545;
}

@media (max-width: 768px) {
    .tool-content {
        padding: .8em !important;
        box-shadow: unset;
    }

    .operate-buttons .btn-sr {
        line-height: 32px !important;
        height: 32px !important;
        padding: 0 8px !important;
    }

    .btn-sr {
        height: 32px;
    }

    .preview-box .preview-container .empty-preview {
        height: 250px;
    }

    .settings-box > div {
        width: 100%;
    }
}
