
/* study999-recitation-record-buttons-v1 */

/* 只作用于背诵测试中的三个录音按钮 */
button.study999-record-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;

    width: auto !important;
    height: 38px !important;
    min-height: 38px !important;
    box-sizing: border-box !important;

    padding: 0 12px !important;
    margin: 4px 6px 4px 0 !important;

    border: 0 !important;
    border-radius: 10px !important;

    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;

    box-shadow: 0 2px 6px rgba(15, 23, 42, .15) !important;
    cursor: pointer !important;
    vertical-align: middle !important;

    transition: filter .15s ease, transform .15s ease !important;
}

/* 三个图标统一为 23px */
button.study999-record-action::before {
    content: "" !important;
    display: inline-block !important;
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    flex: 0 0 23px !important;

    background-position: center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

/* 开始录音：紫色 */
button.study999-record-start {
    background: #7c3aed !important;
}

/* 结束录音：红色 */
button.study999-record-stop {
    background: #dc2626 !important;
}

/* 重新录音：青绿色 */
button.study999-record-retry {
    background: #0d9488 !important;
}

button.study999-record-action:not(:disabled):hover {
    filter: brightness(1.08);
}

button.study999-record-action:not(:disabled):active {
    transform: scale(.97);
}

button.study999-record-action:focus-visible {
    outline: 3px solid #93c5fd !important;
    outline-offset: 3px !important;
}

button.study999-record-action:disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
}

@media (prefers-reduced-motion: reduce) {
    button.study999-record-action {
        transition: none !important;
    }
}

button.study999-record-start::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.3%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%229%22%20y%3D%222%22%20width%3D%226%22%20height%3D%2213%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M5%2010v2a7%207%200%200%200%2014%200v-2%22%2F%3E%3Cpath%20d%3D%22M12%2019v3M8%2022h8%22%2F%3E%3C%2Fsvg%3E") !important;
}

button.study999-record-stop::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.3%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%225%22%20width%3D%2214%22%20height%3D%2214%22%20rx%3D%222%22%20fill%3D%22white%22%20stroke%3D%22white%22%2F%3E%3C%2Fsvg%3E") !important;
}

button.study999-record-retry::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.3%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2011a9%209%200%201%201%203%207%22%2F%3E%3Cpath%20d%3D%22M3%204v7h7%22%2F%3E%3C%2Fsvg%3E") !important;
}
