/* 容器全宽扁平化（复用你的设计风格） */
#dmt-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

/* 标题样式 */
#dmt-container h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #333;
}

/* BPM调节区（紧凑排版，与你的节拍器一致） */
#dmt-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
    flex-wrap: wrap;
}

#dmt-controls button {
    width: 50px;
    height: 50px;
    font-size: 26px;
    background-color: #FF7F50;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
    cursor: pointer;
}

#dmt-controls button:hover {
    background-color: #FF6347;
}

#dmt-bpm-input {
    width: 100px;
    height: 50px;
    font-size: 26px;
    text-align: center;
    border: 2px solid #FF7F50;
    border-radius: 12px;
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* 播放控制按钮组 */
#dmt-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

#dmt-buttons button {
    padding: 12px 32px;
    font-size: 20px;
    background-color: #FF7F50;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    cursor: pointer;
}

#dmt-buttons button:hover {
    background-color: #FF6347;
}

#dmt-buttons button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    box-shadow: none;
}

/* 节奏型选择区 */
#dmt-rhythm-mode {
    margin-top: 10px;
    text-align: center;
}

#dmt-rhythm-mode label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #555;
}

/* 下拉菜单（扁平设计，复用你的样式） */
#dmt-rhythm-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 220px;
    padding: 10px 35px 10px 12px;
    font-size: 14px;
    border: 2px solid #FF7F50;
    border-radius: 8px;
    background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='10,50 70,110 130,50' fill='%23FF7F50'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 14px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    cursor: pointer;
    box-sizing: border-box;
}

/* 状态显示 */
#dmt-status {
    margin-top: 15px;
    font-size: 16px;
    color: #666;
}

/* 响应式优化（适配移动设备） */
@media (max-width: 768px) {
    #dmt-container {
        padding: 15px;
    }
    #dmt-bpm-input {
        width: 80px;
        height: 45px;
        font-size: 22px;
    }
    #dmt-controls button {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    #dmt-buttons button {
        padding: 10px 24px;
        font-size: 18px;
    }
    #dmt-rhythm-select {
        width: 100%;
    }
}