/* 在线节拍器 */
.mt-range {
    width: 100%;
    height: 6px;
    margin-top: 8px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 999px;
    background: var(--c-surface-soft, #eef1f5);
    outline: none;
}
.mt-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0096dc;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.mt-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0096dc;
    cursor: pointer;
    border: 2px solid #fff;
}

.mt-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}
.mt-quick-btn {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--c-border, #e3e8ef);
    background: var(--c-surface, #fff);
    color: var(--c-text-sub, #5b6572);
    font-size: 12px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.mt-quick-btn:hover { background: #0096dc; border-color: #0096dc; color: #fff; }

.mt-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--c-surface-soft, #f6f8fa);
}
.mt-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--c-text-sub, #5b6572);
    cursor: pointer;
}
.mt-check input { width: 15px; height: 15px; }

.mt-train {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed var(--c-border, #d5dbe3);
}
.mt-train-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--c-text-sub, #5b6572);
}
.mt-train-row .calc-input { max-width: 78px; }

/* 显示区 */
.mt-display {
    text-align: center;
    padding: 18px 12px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--c-surface-soft, #f6f8fa);
}
.mt-bpm-num {
    font-size: 44px;
    font-weight: 800;
    color: #0096dc;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.mt-bpm-num small {
    font-size: 15px;
    font-weight: 700;
    margin-left: 5px;
    color: var(--c-text-sub, #5b6572);
}

.mt-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 14px 0 8px;
}
.mt-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--c-border, #d7dde5);
    transition: background .08s, transform .08s;
}
.mt-dot.is-on {
    background: #0096dc;
    transform: scale(1.25);
}
.mt-dot.is-accent { background: #ef4444; }

.mt-beat-txt {
    font-size: 13px;
    color: var(--c-text-sub, #5b6572);
}

.mt-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
}
.mt-note.is-info { background: rgba(0, 150, 220, .1); color: #0a7fc0; }
.mt-note.is-err { background: rgba(220, 38, 38, .1); color: #b91c1c; }

[data-theme="dark"] .mt-quick-btn { background: var(--c-surface, #1b2028); }
[data-theme="dark"] .mt-note.is-info { color: #58bdf0; }
[data-theme="dark"] .mt-note.is-err { color: #f87171; }

@media (max-width: 768px) {
    .mt-bpm-num { font-size: 34px; }
}
